@cux/referrer
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Cux.io


Micro library for parsing a referrer by type

Installation

yarn add @cux/referrer

Usage

import { getReferrer } from '@cux/referrer';

getReferrer('https://google.com/');

You should receive the following object:

{
  type: ReferrerType;
  name: ReferrerName | string;
}

Types of referrers

  • Paid Traffic (Google, Facebook, Bing. Yahoo campaigns)
  • Search (Google, Bing, Yahoo, Baidu, Yandex)
  • Social (Facebook, Twitter, Instagram, Youtube, Linkedin)
  • Organic (direct link)
  • Other

Readme

Keywords

none

Package Sidebar

Install

npm i @cux/referrer

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

45.7 kB

Total Files

24

Last publish

Collaborators

  • kmlwlkwk