In this example we have a file called file.js.
Let's assume that you have to parse an URL using JavaScript and NodeJS querystring module.
To accomplish this all you have to do is to insert the following statement in your file:
const querystring = require('querystring');
var ref = querystring.pa...