git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / publicsuffixlist / publicsuffixlist.js

447 bytesRaw
1'use strict';
2
3if (process.pkg) {
4 let hasBadDeps = true;
5 try {
6 require('./node_modules/istanbul', 'must-exclude');
7 } catch (_) {
8 hasBadDeps = false;
9 }
10 // istanbul must be in devDeps, not in deps
11 if (hasBadDeps) return;
12}
13
14var PublicSuffixList = require('publicsuffixlist');
15var list = new PublicSuffixList();
16list.initializeSync();
17var result = list.lookup('www.domain.com');
18if (result.tld === 'com') {
19 console.log('ok');
20}
21

Built with git-ssb-web