🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@akiflow/tlds-list

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akiflow/tlds-list - npm Package Compare versions

Comparing version

to
1.0.4

scripts/updateTlds.js

5

package.json
{
"name": "@akiflow/tlds-list",
"version": "1.0.2",
"version": "1.0.4",
"description": "This package provide the list of top level domains, easily formatted in JSON",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"update-tlds": "node ./scripts/updateTlds.js"
},

@@ -9,0 +10,0 @@ "repository": {

11

README.md

@@ -18,6 +18,15 @@ # tlds-list

tlds.includes('com') // check if a tls is present
tlds.includes('com') // check if a tld is present
```
### Notes
Tlds are lowercase, so it's better to lowercase the tld you are looking for before searching:
```js
const tld='NET'
tlds.includes(tld.toLowerCase()) // WRONG
tlds.includes(tld.toLowerCase()) // RIGHT
```
### Other
For any issue feel free to open an issue