1const querystring = require('querystring');
2const url = "http://example.com/index.html?code=string&key=12&id=false";
3const qs = "code=string&key=12&id=false";
4
5console.log(querystring.parse(qs));
6// > { code: 'string', key: '12', id: 'false' }
7
8console.log(querystring.parse(url));