nutty-body
Capture text piped from stdin
Install
Install the package using NPM:
npm install --save nutty-body
Example
//Import nuttyvar nutty = ;var nutty_body = ; //Set the CLI namenutty; //Set the CLI descriptionnutty; //Set the CLI versionnutty; //Parse the bodynutty; //Use a middlewarenutty; //Run the CLInutty;
API
var nutty_body = ;
nutty_body(opt)
Returns a middleware to be used with nutty.use
(see the nutty.use documentation). The options argument must be an object with the following settings:
limit
: anumber
with the maximum data size that can be piped fromstdin
. Default is1024
.
License
MIT LICENSE.