git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / 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