1.1.0 • Published 4 years ago

urlifylb v1.1.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

urlifylb

node package to turn an object into a query string

npm install --save urlifylb

import {generateQuery} from "urlifylb";

let query = generateQuery({
  param1 : 1,
  param2 : "hello",
  param3 : "world"
})

let text = query.text; //param1=1&param2=hello&param3=world
let original = query.original; //{param1 : 1, param2 : "hello", param3 : world}
let paramCount = query.paramCount; // 3