const url = require(\'url\');
const myUrl = new URL(\'http://www.example.com/pages?id=888&search=login\');
console.log(myUrl.searchParams); // URLSearchParams