clean-query
v1.0.0
Published
Remove empty values from an object and serialize to a query string
Downloads
16
Maintainers
Readme
clean-query
Remove empty values from an object and serialize to a query string
Install
$ npm install --save clean-query
Usage
var cleanQuery = require('clean-query');
cleanQuery({a: 'foo', b: undefined, c: '', d: null, e: 123});
//=> 'a=foo&e=123'
License
MIT © Andreas Gillström