4.1.0 • Published 3 years ago

@aller/site-id v4.1.0

Weekly downloads
468
License
-
Repository
github
Last release
3 years ago

site-id

Site ID to host and vice versa

Usage

import { getHost, getSiteId, siteIds, hosts, isExternalUrl } from '@aller/site-id';

console.log(getHost(1)); // 'dagbladet.no'
console.log(getSiteId('dagbladet.no')); // '1'
console.log(siteIds); // [ '1', '2', ..., '141', '207' ]
console.log(hosts); // [ 'dagbladet.no', 'dinside.no', ..., 'topp.no', 'vi.no' ]
console.log(isExternalUrl('https://www.dagbladet.no/nyheter/lege-svarer-om-coronaviruset/72191280')); // false
console.log(isExternalUrl('https://direkte.vg.no/coronaviruset/videos/193213?wide')); // true
4.1.0

3 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago