Socket
Socket
Sign inDemoInstall

tlds

Package Overview
Dependencies
Maintainers
3
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tlds - npm Package Compare versions

Comparing version 1.208.0 to 1.209.0

CHANGELOG.md

6

bin.js
#!/usr/bin/env node
var tlds = require('./');
const tlds = require('.');
for (var i = 0, len = tlds.length; i < len; i++) {
console.log(tlds[i]);
}
tlds.forEach(tld => console.log(tld));

@@ -1,2 +0,2 @@

const tlds: string[];
export default tlds;
declare const tlds: string[];
export = tlds;
{
"name": "tlds",
"version": "1.208.0",
"description": "List of TLDs",
"keywords": [
"data",
"tld",
"tlds",
"top",
"level",
"domains"
],
"author": "Stephen Mathieson <me@stephenmathieson.com>",
"repository": {
"type": "git",
"url": "git://github.com/stephenmathieson/node-tlds.git"
},
"dependencies": {},
"devDependencies": {
"semver": "^5.5.0",
"superagent": "~0.21.0"
},
"main": "index",
"types": "index.d.ts",
"bugs": {
"url": "https://github.com/stephenmathieson/node-tlds/issues"
},
"scripts": {
"test": "node test.js"
},
"bin": {
"tlds": "bin.js"
},
"license": "MIT"
"name": "tlds",
"version": "1.209.0",
"description": "A list of TLDs.",
"repository": "https://github.com/stephenmathieson/node-tlds.git",
"author": "Stephen Mathieson <me@stephenmathieson.com>",
"license": "MIT",
"main": "index.json",
"files": [
"index.json",
"index.d.ts",
"bin.js"
],
"bin": "bin.js",
"scripts": {
"lint": "eslint .",
"test": "ava",
"prepublishOnly": "eslint . && ava"
},
"keywords": [
"data",
"tld",
"tlds",
"top",
"level",
"domains"
],
"devDependencies": {
"ava": "^3.11.0",
"eslint": "^7.6.0",
"execa": "^4.0.3",
"got": "^11.5.1",
"is-git-dirty": "^2.0.1",
"is-punycode": "^1.0.1",
"load-json-file": "^6.2.0",
"prepend-file": "^2.0.0",
"punycode": "^2.1.1",
"semver": "^7.3.2",
"write-json-file": "^4.3.0"
},
"eslintConfig": {
"extends": "eslint:recommended",
"env": {
"node": true,
"es2020": true
},
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
}

@@ -1,29 +0,18 @@

# tlds
List of TLDs, scraped from [ICANN](https://www.icann.org/resources/pages/tlds-2012-02-25-en)
List of TLDs from [ICANN](https://www.icann.org/resources/pages/tlds-2012-02-25-en).
## License
## Install
(The MIT License)
```sh
npm install tlds
```
Copyright (c) 2013 Stephen Mathieson &lt;me@stephenmathieson.com&gt;
## Usage
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
```js
const tlds = require('tlds');
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
console.log(tlds);
//=> ['aaa', 'aarp', 'abarth', 'abb', 'abbott', 'abbvie', 'abc', ...]
```
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