1var express = require('express');
2var app = express();
3
4app.get('/', function(req, res){
5 res.send('id: ' + req.query.id);
6});
7
8app.listen(3000);
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));