UNPKG

2.39 kBJSONView Raw
1{
2 "name": "parse-domain",
3 "version": "6.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": "^4.0.0",
60 "node-fetch": "^3.2.0"
61 },
62 "devDependencies": {
63 "@types/jest": "^27.4.0",
64 "@types/node": "^17.0.10",
65 "@types/punycode": "^2.1.0",
66 "@typescript-eslint/eslint-plugin": "^5.10.0",
67 "@typescript-eslint/parser": "^5.10.0",
68 "eslint": "^8.7.0",
69 "eslint-config-peerigon": "^33.2.4",
70 "eslint-plugin-no-null": "^1.0.2",
71 "eslint-plugin-node": "^11.1.0",
72 "husky": "^7.0.4",
73 "jest": "^27.4.7",
74 "lint-staged": "^12.3.1",
75 "nock": "^13.2.2",
76 "npm-run-all": "^4.1.5",
77 "pin-github-action": "^1.5.0",
78 "prettier": "^2.5.1",
79 "rimraf": "^3.0.2",
80 "ts-jest": "^27.1.3",
81 "ts-node": "^10.4.0",
82 "typescript": "^4.5.5",
83 "updtr": "^4.0.0"
84 }
85}