Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.2 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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc