npm install tiny-url-params
'use strict';
var tinyUrlParams = require('tiny-url-params');
var params = tinyUrlParams('https://www.site.com/?customer=Maxim&goods=game');
console.log(params); // output = { customer: 'Maxim', goods: 'game' };
I have unit tests that run under Node.js. You can run these tests with the npm test
command.