nanobe

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nanobe

Weekly Downloads

0

Version

0.1.3

License

ISC

Unpacked Size

19.3 kB

Total Files

14

Last publish

Collaborators

  • christopher-black