npm install urlenparser
git clone https://github.com/judgeface/urlenparser.git
var urlenparser = require('urlenparser');
urlenparser(req, function (err, fields) {
});
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 to415
- err.message to
Length Required
and err.statusCode to411
- err.message to
Request Entity Too Large
and err.statusCode to413
- an error emitted by
req
- err.message to
-
fields
is anObject
containing the result
MIT licensed