1.0.0-alpha • Published 4 years ago

teil v1.0.0-alpha

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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...

1.0.0-alpha

4 years ago

0.1.0-alpha

4 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago