UNPKG

@oxog/port-terminator

Version:

Cross-platform utility to terminate processes on ports with zero dependencies

102 lines 2.91 kB
{ "name": "@oxog/port-terminator", "version": "1.0.0", "description": "Cross-platform utility to terminate processes on ports with zero dependencies", "author": "Ersin KOÇ", "license": "MIT", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "repository": { "type": "git", "url": "git+https://github.com/ersinkoc/port-terminator.git" }, "homepage": "https://github.com/ersinkoc/port-terminator#readme", "bugs": { "url": "https://github.com/ersinkoc/port-terminator/issues" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "bin": { "port-terminator": "./dist/cli/index.js", "pt": "./dist/cli/index.js" }, "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs", "types": "./dist/index.d.ts" } }, "files": [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ], "scripts": { "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "tsc --module commonjs --outDir dist", "build:esm": "tsc --module esnext --outDir dist-esm --declaration false --declarationMap false && cpr dist-esm/index.js dist/index.mjs --overwrite && rimraf dist-esm", "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist", "clean": "rimraf dist", "test": "jest --coverage", "test:watch": "jest --watch", "test:ci": "jest --coverage --ci --reporters=default --reporters=jest-junit", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix", "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"", "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"", "typecheck": "tsc --noEmit", "benchmark": "node benchmarks/performance.js", "prepublishOnly": "npm run lint && npm run typecheck && npm run build", "prepare": "npm run build" }, "keywords": [ "port", "kill", "terminate", "process", "tcp", "udp", "cross-platform", "zero-dependency", "cli", "port-killer", "port-manager", "port-scanner", "lsof", "netstat", "development-tools", "devtools", "nodejs", "typescript", "process-management", "network", "port-availability", "kill-port", "free-port", "port-terminator" ], "engines": { "node": ">=14.0.0" }, "devDependencies": { "@types/jest": "^29.5.0", "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "cpr": "^3.0.1", "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-jest": "^27.0.0", "jest": "^29.5.0", "jest-junit": "^16.0.0", "prettier": "^3.0.0", "rimraf": "^5.0.5", "ts-jest": "^29.1.0", "typescript": "^5.2.0" } }