hexnut-bodyparser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

hexnut-bodyparser

hexnut-bodyparser is a hexnut middleware for automatically parsing messages received. It can also be used with hexnut-client.

Installing

npm i hexnut-bodyparser

Usage

JSON

bodyparser.json(settings)

const bodyparser = require('hexnut-bodyparser');

// Will *not* throw if messages cannot be parsed
app.use(bodyparser.json());

// *Will* throw if messages cannot be parsed
app.use(bodyparser.json({ strictParsing: true }));

Readme

Keywords

none

Package Sidebar

Install

npm i hexnut-bodyparser

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.74 kB

Total Files

5

Last publish

Collaborators

  • francisstokes