index.js
function split(url) {
  assert.equal(typeof url, 'string', 'url-querystring: url should be a string');

  var res = {};
  var nw = url.split('?');

  res.url = nw[0];
  res.qs = nw.length == 2
    ? qs.parse(nw[1])
    : {};

  return res;
}
function split(url) {
  assert.equal(typeof url, 'string', 'url-querystring: url should be a string');

  var res = {};
  var nw = url.split('?');

  res.url = nw[0];
  res.qs = nw.length == 2
    ? qs.parse(nw[1])
    : {};

  return res;
}
function split ( url ) { assert . equal ( typeof url , 'string' , 'url-querystring: url should be a string' ) ; var res = { } ; var nw = url . split ( '?' ) ; res . url = nw [ 0 ] ; res . qs = nw . length == 2 ? qs . parse ( nw [ 1 ] ) : { } ; return res ; }
Splice a `querystring` from an `url`;

@param {String} url
@return {String}
@api public
Splice a querystring from an url ;