Skip to content

francisrstokes/hexnut-bodyparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }));

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published