UNPKG

is-private-host

Version:

Check if a hostname or URL resolves to a private IP address

79 lines (78 loc) 2.11 kB
{ "name": "is-private-host", "version": "1.0.2", "description": "Check if a hostname or URL resolves to a private IP address", "sideEffects": false, "type": "module", "types": "./dist/index.d.ts", "module": "./dist/index.js", "main": "./dist/index.cjs", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" }, "./package.json": "./package.json" }, "engines": { "node": ">=18.0.0" }, "files": [ "dist", "src" ], "scripts": { "build": "pkg-utils build && pkg-utils --strict", "clean": "rimraf dist coverage", "lint": "eslint . && tsc --noEmit", "posttest": "npm run lint", "prebuild": "npm run clean", "prepublishOnly": "npm run build", "test": "npm run test:node", "test:bun": "bun test", "test:deno": "deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest", "test:node": "vitest --reporter=verbose" }, "author": "Espen Hovlandsdal <espen@hovlandsdal.com>", "keywords": [ "ip", "url", "private", "internal" ], "dependencies": { "ipaddr.js": "^2.2.0" }, "devDependencies": { "@sanity/pkg-utils": "^6.11.4", "@sanity/semantic-release-preset": "^5.0.0", "@types/node": "^18.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "eslint": "^8.51.0", "eslint-config-prettier": "^9.1.0", "eslint-config-sanity": "^7.1.2", "prettier": "^3.3.3", "rimraf": "^6.0.1", "semantic-release": "^24.0.0", "typescript": "^5.5.4", "vitest": "^2.0.5" }, "homepage": "https://github.com/rexxars/is-private-host#readme", "bugs": { "url": "https://github.com/rexxars/is-private-host/issues" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/rexxars/is-private-host.git" }, "license": "MIT", "prettier": { "bracketSpacing": false, "printWidth": 100, "semi": false, "singleQuote": true } }