Turn a plain object into a query string
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.jshintignore
.jshintrc
changelog.markdown
license
package.json
queso.js
readme.markdown

readme.markdown

queso

Turn a plain object into a query string

Install

npm install queso --save

Usage

You can use queso to generate a full query string.

queso.stringify({ foo: 'bar', baz: true });
// <- ?foo=bar&baz

You can also demand that the prefix is always an ampersand &.

queso.stringify({ foo: 'bar', baz: true }, true);
// <- &foo=bar&baz

License

MIT