teil

1.0.0-alpha • Public • Published

Teil

A neat wrapper for Express.js API's.

This is a work in progress. However, the teil package is published at NPM (mainly for me to use in the 2019 Nodeknockout hackathon ;)). So to try it out, you can simply do:

npm install teil

Then you can create a controller file at ./controllers/hello.js:

module.exports = {
  'GET world'({ send }) {
    send('Hello, World!')
  }
}

And start teil, it will automatically create a /api/hello/world route for you:

npx teil

That's it! Now you can visit http://localhost:3333/api/hello/world and you will see Hello, World!.

Check out the ./example folder for more features, you can start the example by running npm run example.

To be continued...

Dependents (0)

Package Sidebar

Install

npm i teil

Weekly Downloads

16

Version

1.0.0-alpha

License

MIT

Unpacked Size

331 kB

Total Files

58

Last publish

Collaborators

  • mustardamus