hapi-align-json
Respond with beautiful JSON
Why?
- Quick alternative to HTML in some cases.
- Optimize your API for readability.
- Has the best formatting.
Install
npm install hapi-align-json
Usage
Register the plugin on your server to enable beautiful JSON responses.
const hapi = ;const alignJson = ; const server = hapi; const init = async { await server; server; await serverstart; console;}; ;
Visiting the above route will return a JSON response with highly readable formatting because of this plugin.
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.