@litert/tlds
v0.2.0
Published
A simple TLD (Top Level Domain) helper library.
Downloads
3
Readme
LiteRT/TLD
A simple TLD (Top Level Domain) helper library.
Installation
Install by NPM:
npm i @litert/tlds --save
Usage
See src/examples/demo.ts.
How to import full TLD list?
- Get data from https://publicsuffix.org/list/public_suffix_list.dat
- Parse the data into string array (pay attention to some TLD items like
*.xxx.xx
)- Now import them into your
TLDManager
.
Requirement
- TypeScript v3.2.2 (or newer)
- Node.js v10.0.0 (or newer)
Document
简体中文版
- Preparing
License
This library is published under Apache-2.0 license.