npm.io
0.1.3 • Published 7 years ago

nanobe

Licence
ISC
Version
0.1.3
Deps
0
Size
19 kB
Vulns
0
Weekly
0
Stars
1

Nanobe

Nanobe is a vanilla Node.js server with routing capabilities. It currently supports servering static files, routing, query parameters and post data.

Setup

  • Mocha is required as a global dependency for running tests.
  • npm install is required to install Chai for running tests.

Testing

Run npm test to execute the tests.

Features

  • Request body parsed in utilities.js
  • When requesting a folder, the server looks for index.html by default
  • If a matching file is not found in the public folder, all routes are checked
  • Unit testing for core features
  • Ability to parse query parameters in utilites.js
  • Support for nested routes and nested routers

Future Plans

  • Route parameters
  • Additional testing
  • Middleware support
  • Security audit

Resources