@akiflow/tlds-list
Advanced tools
Comparing version 1.0.2 to 1.0.4
{ | ||
"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": { |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16094
31