1.0.1 • Published 8 years ago
tiny-url-params v1.0.1
tiny-url-params
Installation
npm install tiny-url-paramsUsage
'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.