query-to-json-es6

0.0.1 • Public • Published

query-string Build Status

Install

$ npm i --save query-to-json

Usage

Query to JSON
var query = require( "query-to-json" );
var parsedQuery = query.queryToJson("?param1=foo&param2=bar");
//=> {
  param1: "foo",
  param2: "bar"
}
JSON to Query
var query = require( "query-to-json" );
var object1 = {
   param1: "foo",
   param2: "bar"
};
var parsedQuery = jsonToQuery(object1);

//=> "?param1=foo&param2=bar"

Readme

Keywords

Package Sidebar

Install

npm i query-to-json-es6

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • jotadeveloper