UNPKG

2.22 kBJSONView Raw
1{
2 "name": "parse-domain",
3 "version": "8.0.1",
4 "description": "Splits a hostname into subdomains, domain and (effective) top-level domains",
5 "keywords": [
6 "domain",
7 "url",
8 "sub-domain",
9 "tld",
10 "parse",
11 "sanitize",
12 "top-level"
13 ],
14 "type": "module",
15 "main": "./build/main.js",
16 "types": "./build/main.d.ts",
17 "scripts": {
18 "test": "run-p test:*",
19 "test:suite": "node --no-warnings --experimental-vm-modules ./node_modules/jest/bin/jest.js",
20 "test:lint": "eslint --max-warnings 0 --cache --ext js,ts --ignore-path .gitignore .",
21 "build": "run-s build:*",
22 "build:cleanup": "rimraf build",
23 "build:tsc": "tsc -p ./tsconfig.build.json",
24 "build:update": "./bin/update.js",
25 "prepare": "run-s prepare:*",
26 "prepare:husky": "husky install",
27 "prepare:build": "npm run build",
28 "update:psl-fixture": "npm run node -- ./src/scripts/update-psl-fixture.ts",
29 "update:dependencies": "updtr",
30 "node": "node --no-warnings --loader ts-node/esm/transpile-only"
31 },
32 "bin": {
33 "parse-domain-update": "./bin/update.js"
34 },
35 "repository": {
36 "type": "git",
37 "url": "https://github.com/peerigon/parse-domain.git"
38 },
39 "author": "peerigon <developers@peerigon.com>",
40 "license": "MIT",
41 "files": [
42 "bin",
43 "build",
44 "serialized-tries"
45 ],
46 "sideEffects": false,
47 "lint-staged": {
48 "*.{ts,tsx,js,cjs,mjs,jsx}": [
49 "eslint --cache --fix",
50 "prettier --write"
51 ],
52 ".github/workflows/*.{yml,yaml}": [
53 "pin-github-action --allow-empty",
54 "prettier --write"
55 ],
56 "*.{json,css,md,yml,yaml}": "prettier --write"
57 },
58 "dependencies": {
59 "is-ip": "^5.0.1",
60 "node-fetch": "^3.3.2"
61 },
62 "devDependencies": {
63 "@types/jest": "^29.5.6",
64 "@types/node": "^20.8.9",
65 "eslint": "^8.52.0",
66 "eslint-config-peerigon": "^36.0.0",
67 "eslint-plugin-no-null": "^1.0.2",
68 "husky": "^8.0.3",
69 "jest": "^29.7.0",
70 "lint-staged": "^15.0.2",
71 "nock": "^13.3.6",
72 "npm-run-all": "^4.1.5",
73 "pin-github-action": "^1.8.0",
74 "prettier": "^3.0.3",
75 "rimraf": "^5.0.5",
76 "ts-jest": "^29.1.1",
77 "ts-node": "^10.9.1",
78 "typescript": "^5.2.2",
79 "updtr": "^4.0.0"
80 }
81}