parse-domain
Version:
Splits a hostname into subdomains, domain and (effective) top-level domains
92 lines (91 loc) • 2.48 kB
JSON
{
"name": "parse-domain",
"version": "8.3.1",
"description": "Splits a hostname into subdomains, domain and (effective) top-level domains",
"keywords": [
"domain",
"url",
"sub-domain",
"tld",
"parse",
"sanitize",
"top-level"
],
"homepage": "https://github.com/peerigon/parse-domain#readme",
"bugs": {
"url": "https://github.com/peerigon/parse-domain/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/peerigon/parse-domain.git"
},
"license": "MIT",
"author": "peerigon <developers@peerigon.com>",
"sideEffects": false,
"type": "module",
"exports": {
".": "./dist/main.js"
},
"main": "./dist/main.js",
"types": "./dist/main.d.ts",
"bin": {
"parse-domain-update": "./dist/bin/update.js"
},
"files": [
"dist",
"serialized-tries",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"test": "run-p test:*",
"test:suite": "vitest run --coverage",
"test:lint": "eslint --max-warnings 0 --cache .",
"test:format": "prettier --check .",
"test:types": "tsc --noEmit",
"test:jsr": "jsr publish --dry-run --allow-dirty",
"vitest": "vitest",
"build": "run-s build:*",
"build:cleanup": "rimraf dist",
"build:tsc": "tsc -p ./tsconfig.build.json",
"build:update": "node ./dist/bin/update.js",
"prepare": "run-p prepare:*",
"prepare:husky": "husky",
"prepare:build": "npm run build",
"update:psl-fixture": "npm run node -- ./src/scripts/update-psl-fixture.ts",
"update:dependencies": "updtr",
"node": "node --no-warnings --loader ts-node/esm/transpile-only",
"release": "semantic-release"
},
"dependencies": {
"is-ip": "^5.0.1"
},
"devDependencies": {
"@djankies/vitest-mcp": "0.5.1",
"@eslint/mcp": "0.3.5",
"@peerigon/configs": "^15.4.0",
"@secretlint/secretlint-rule-preset-recommend": "^13.0.2",
"@types/node": "^25.8.0",
"@vitest/coverage-v8": "^4.1.7",
"eslint": "^9.39.2",
"husky": "^9.1.7",
"jsr": "^0.14.3",
"lint-staged": "^17.0.5",
"nock": "^14.0.10",
"npm-run-all2": "^9.0.1",
"pin-github-action": "^3.4.0",
"prettier": "^3.8.3",
"rimraf": "^6.0.1",
"secretlint": "^13.0.2",
"semantic-release": "^25.0.3",
"ts-lsp-mcp": "0.1.3",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"updtr": "^4.1.0",
"vitest": "^4.1.7"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}