Nitrate Processed Mincemeat
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

url-querystring

2.1.1 • Public • Published

url-querystring

NPM version build status Test coverage Downloads

Split an url into a qs and url component. Also unwraps the qs component by calling querystring.parse under the hood.

Installation

npm install url-querystring

Usage

var extract = require('url-querystring');
var qs = require('querystring');
 
var res = extract('http://foobar.com/hello?tab=hello&method=something');
// => '{
//       url: 'http://foobar.com/hello',
//       qs: {
//         tab: hello,
//         method: something
//       }
//     }'
 
qs.parse(res.qs);
// => {tab: hello, method: something}

License

MIT

install

npm i url-querystring

Downloadsweekly downloads

89

version

2.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar