tiny-url-params
v1.0.1
Published
Returns an object with the parameters of the URL.
Downloads
7
Readme
tiny-url-params
Installation
npm install tiny-url-params
Usage
'use strict';
var tinyUrlParams = require('tiny-url-params');
Example
var params = tinyUrlParams('https://www.site.com/?customer=Maxim&goods=game');
console.log(params); // output = { customer: 'Maxim', goods: 'game' };
Testing
I have unit tests that run under Node.js. You can run these tests with the npm test
command.