Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

saber-httpserver

Saber2pr10MITdeprecated0.0.6TypeScript support: included

this package is no longer update, please install @saber2pr/nana

saber-httpserver

readme

saber-httpserver

saber-httpserver

# from npm
npm install saber-httpserver

# from github
git clone https://github.com/Saber2pr/saber-httpserver.git

For example:

HttpServer({
  port: 3000,
  Logger: {
    method: true,
    api: true,
    value: true,
    pathname: true
  },
  message: 'listening...',
  publicDir: '/public'
})

start

npm install
# auto compile to commonjs
npm start

# run app
npm run lau

# test
npm test

Author: saber2pr


develope and test

you should write ts in /src

you should make test in /src/test

export your core in /src/index.ts!