tc-parse-qp
v1.0.7
Published
To install;
Downloads
3
Readme
parseQP
To install;
npm i tc-parse-qp
To use, import
or require
package;
import { parseQP } from 'tc-parse-qp'
// or
const { parseQP } = require('tc-parse-qp');
// example use
const url = 'http://example.com/?p=page&myquery=string&something=new&hello=world';
parseQP(url) // returns ({
p: 'page',
myquery: 'string',
something: 'new',
hello: 'world',
})