Skip to content

Very simple CommonJS-module to encode/decode query parameters

License

Notifications You must be signed in to change notification settings

finn-no/query-params

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

query-params

Very simple CommonJS-module to encode/decode query parameters

Build Status NPM

Convert object to query string or opposite. You need Browserify or similar to use this in a browser. It doesn't use ES5, so it should work in older browsers.

Installation

npm install query-params --save

Example usage

var params = require('query-params');

params.encode({'foo': 'bar', 'a': 'b'}); // 'foo=bar&a=b'

params.decode('foo=bar&a=b'); // {'foo': 'bar', 'a': 'b'}

About

Very simple CommonJS-module to encode/decode query parameters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published