Jan 20, 2014
How to read GET query string in NodeJs programSo how can we read query string as we get in $_GET in PHP?
more about it on this StackOverflow thread.
# If your url is /path/filename?anything=123&name=john var query = require('url').parse(req.url,true).query; var anything=query.anything; var name=query.name;
Check full NodeJs course here. Learning NodeJs
If anything helps, feel free to buy me a beer.
By : Motyar+ @motyar