Socket
Socket
Sign inDemoInstall

referral-parser

Package Overview
Dependencies
66
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    referral-parser

Parse a referral url into useful information


Version published
Weekly downloads
102
increased by37.84%
Maintainers
1
Install size
5.24 MB
Created
Weekly downloads
 

Readme

Source

Referral Parser

####Parse a referral url into useful information

const Referral = require('referral-parser');
let refObj = new Referral('http://www.google.co.uk/?q=bbc+news');
{
  "type": "search",
  "name": "Google",
  "search": "bbc news",
  "host": "www.google.co.uk" 
}

Installation

$ npm install referral-parser

Features

  • Fast
  • Extensible

Philosophy

Two of the biggest analytics companies have their own open source data sets of referring websites. Overtime these have become quite separated and no longer aligned meaning you choose one or the other. Referral Parser combines these two sets of data, filters them and makes them available as a single list.

We can then use this dataset, feed in our referral string and get some useful information back.

License

MIT

Keywords

FAQs

Last updated on 07 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc