95 lines
2.1 KiB
JSON
95 lines
2.1 KiB
JSON
{
|
|
"name": "@chainsafe/is-ip",
|
|
"version": "2.1.0",
|
|
"description": "Check if a string is an IP address",
|
|
"type": "module",
|
|
"files": [
|
|
"lib",
|
|
"src"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"node": "./lib/is-ip.node.js",
|
|
"import": "./lib/is-ip.js"
|
|
},
|
|
"./parse": {
|
|
"import": "./lib/parse.js"
|
|
},
|
|
"./parser": {
|
|
"import": "./lib/parser.js"
|
|
}
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"*",
|
|
"lib/*",
|
|
"lib/*/index"
|
|
]
|
|
}
|
|
},
|
|
"types": "./lib/is-ip.d.ts",
|
|
"scripts": {
|
|
"check-types": "tsc --noEmit",
|
|
"bench": "ts-node-esm ./node_modules/.bin/benchmark bench/**/*.test.ts",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"prepublishOnly": "yarn build",
|
|
"lint": "eslint --color --ext .ts src/ test/ bench/",
|
|
"test": "mocha test/**/*.test.ts",
|
|
"test:chrome": "playwright-test --runner mocha test/**/*.test.ts"
|
|
},
|
|
"pre-push": [
|
|
"lint"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ChainSafe/is-ip.git"
|
|
},
|
|
"keywords": [
|
|
"ip",
|
|
"ipv6",
|
|
"ipv4",
|
|
"regex",
|
|
"regexp",
|
|
"match",
|
|
"test",
|
|
"find",
|
|
"text",
|
|
"pattern",
|
|
"internet",
|
|
"protocol",
|
|
"address",
|
|
"validate",
|
|
"detect",
|
|
"check",
|
|
"is",
|
|
"string"
|
|
],
|
|
"author": "ChainSafe Systems",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/ChainSafe/is-ip/issues"
|
|
},
|
|
"homepage": "https://github.com/ChainSafe/is-ip#readme",
|
|
"devDependencies": {
|
|
"@chainsafe/eslint-plugin-node": "^11.2.3",
|
|
"@dapplion/benchmark": "^0.2.2",
|
|
"@types/chai": "^4.2.0",
|
|
"@types/eslint": "^6.1.3",
|
|
"@types/mocha": "^8.0.3",
|
|
"@types/node": "^18.11.7",
|
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
"@typescript-eslint/parser": "^5.27.1",
|
|
"chai": "^4.3.6",
|
|
"eslint": "^8.17.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"is-ip": "^5.0.0",
|
|
"karma": "^4.3.0",
|
|
"mocha": "^10.0.0",
|
|
"nyc": "^14.1.1",
|
|
"playwright-test": "^12.1.1",
|
|
"prettier": "^2.6.2",
|
|
"ts-node": "^10.8.1",
|
|
"typescript": "^4.7.3"
|
|
}
|
|
}
|