Gathering detailed insights and metrics for @geek/tld
Gathering detailed insights and metrics for @geek/tld
npm install @geek/tld
Typescript
Module System
Node Version
NPM Version
77.8
Supply Chain
93.8
Quality
77.6
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
86,965
Last Day
26
Last Week
192
Last Month
834
Last Year
16,739
MIT License
30 Commits
1 Branches
1 Contributors
Updated on Jun 23, 2021
Minified
Minified + Gzipped
Latest Version
2.0.1-1
Package Id
@geek/tld@2.0.1-1
Unpacked Size
203.79 kB
Size
44.61 kB
File Count
6
NPM Version
7.13.0
Node Version
16.2.0
Cumulative downloads
Total Downloads
Last Day
8.3%
26
Compared to previous day
Last Week
1.6%
192
Compared to previous week
Last Month
6.4%
834
Compared to previous month
Last Year
-15.5%
16,739
Compared to previous year
4
Extract the TLD/domain/subdomain parts of an URL/hostname against mozilla TLDs official listing.
var parser = require('tld-extract');
console.log( parser("http://www.google.com") );
console.log( parser("http://google.co.uk") );
/**
* >> { tld: 'com', domain: 'google.com', sub: 'www' }
* >> { tld: 'co.uk', domain: 'google.co.uk', sub: '' }
*/
Private TLDs are supported, see chromium source code for specs
console.log( parser("http://jeanlebon.cloudfront.net"));
/**
* >> { tld : 'net', domain : 'cloudfront.net', sub : 'jeanlebon' };
*/
console.log( parser("http://jeanlebon.cloudfront.net", {allowPrivateTLD : true}));
/**
* >> { tld : 'cloudfront.net', domain : 'jeanlebon.cloudfront.net', sub : '' };
*/
By default, unknown TLD throw an exception, you can allow them and use tld-extract as a parser using the allowUnknownTLD
option
parse("http://nowhere.local")
>> throws /Invalid TLD/
parse("http://nowhere.local", {allowUnknownTLD : true}))
>> { tld : 'local', domain : 'nowhere.local', sub : '' }
You can update the remote hash table using npm run update
A port of a yks/PHP library
tldextract => bad API, (no need for async, "domain" property is wrong), no need for dependencies
tld => (nothing bad, a bit outdated )
tld.js => no sane way to prove/trust/update TLD listing
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More