1.0.7 • Published 3 years ago

tc-parse-qp v1.0.7

Weekly downloads
31
License
ISC
Repository
-
Last release
3 years ago

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',
})
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago