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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.1
    62
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.1
    62
  • 2.1.0
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i url-querystring

Weekly Downloads

62

Version

2.1.1

License

MIT

Last publish

Collaborators

  • yoshuawuyts