1.0.3 • Published 8 years ago
jquery-param-fn v1.0.3
jquery-param-fn
No dependencies alternative to the jQuery.param() function.
Creates a URL query string from an object or array.
Install
$ npm install jquery-param-fn --saveUsage
const param = require('jquery-param-fn');
const formData = { name: 'John Doe', age: 38 };
const queryString = param(formData); // name=John%20Doe&age=38
fetch('http://example.com?' + queryString).then(function(res) {
...
});Test
$ npm testto check test coverage:
$ npm run test-coverageLicense
MIT