urlenparser

0.0.1 • Public • Published

urlenparser

Installation

npm install urlenparser
git clone https://github.com/judgeface/urlenparser.git

How to use

var urlenparser = require('urlenparser');

urlenparser(req, function (err, fields) {

});

urlenparser(req, [options], callback)

Options:

  • maxKeys maximum number of keys for the result (default to 100)
  • maxLength maximum size in octet (default to 10240)

The callback gets two arguments (err, fields)

  • err:

    • err.message to Unsupported Media Type and err.statusCode to 415
    • err.message to Length Required and err.statusCode to 411
    • err.message to Request Entity Too Large and err.statusCode to 413
    • an error emitted by req
  • fields is an Object containing the result

License

MIT licensed

Package Sidebar

Install

npm i urlenparser

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cydjudge