Comparing version 1.208.0 to 1.209.0
#!/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 <me@stephenmathieson.com> | ||
## 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', ...] | ||
``` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
33763
11
7
55
1
19
1
2