Just
npm install referrers
and then
const referrers = require('referrers')
...
const someUrl = 'https://www.gogle.com.ua/?qwe=rty#asd'
...
console.log(referrers(domain))
/*
{
type: 'search',
name: 'Google'
}
*/
Just
npm install referrers
and then
const referrers = require('referrers')
...
const someUrl = 'https://www.gogle.com.ua/?qwe=rty#asd'
...
console.log(referrers(domain))
/*
{
type: 'search',
name: 'Google'
}
*/
npm i referrers
0
1.0.3
MIT