git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / 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