UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

113 lines (112 loc) 4.01 kB
{ "_args": [ [ { "raw": "process-exists@3.1.0", "scope": null, "escapedName": "process-exists", "name": "process-exists", "rawSpec": "3.1.0", "spec": "3.1.0", "type": "version" }, "/home/zkochan/src/pnpm/packages/pnpm" ] ], "_from": "process-exists@3.1.0", "_id": "process-exists@3.1.0", "_inCache": true, "_location": "/process-exists", "_nodeVersion": "8.9.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/process-exists_3.1.0_1519926718457_0.15633202552212522" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "process-exists@3.1.0", "scope": null, "escapedName": "process-exists", "name": "process-exists", "rawSpec": "3.1.0", "spec": "3.1.0", "type": "version" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/process-exists/-/process-exists-3.1.0.tgz", "_shasum": "86cae049e1e7b51382690ec9fd8dfd74ff7a17c8", "_shrinkwrap": null, "_spec": "process-exists@3.1.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/process-exists/issues" }, "dependencies": { "ps-list": "^4.0.0" }, "description": "Check if a process is running", "devDependencies": { "ava": "*", "noop-process": "^3.0.0", "xo": "*" }, "directories": {}, "dist": { "integrity": "sha512-X11vso1oNLtyDa2j8fsMol2fph1+5PoQ4vpEc1it/rM8eLuRTmrmTg4jfn82WhNur241AYitgjKCgmlgMRZesw==", "shasum": "86cae049e1e7b51382690ec9fd8dfd74ff7a17c8", "tarball": "https://registry.npmjs.org/process-exists/-/process-exists-3.1.0.tgz", "fileCount": 4, "unpackedSize": 3394 }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "d39a601d3eb57ca748c89c151c526f5ddcadde09", "homepage": "https://github.com/sindresorhus/process-exists#readme", "keywords": [ "process", "processes", "proc", "ps", "pid", "test", "testing", "exists", "running", "check" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "process-exists", "optionalDependencies": {}, "readme": "# process-exists [![Build Status](https://travis-ci.org/sindresorhus/process-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/process-exists)\n\n> Check if a process is running\n\n\n## Install\n\n```\n$ npm install process-exists\n```\n\n\n## Usage\n\n```js\nconst processExists = require('process-exists');\n\nprocessExists(process.pid).then(exists => {\n\tconsole.log(exists);\n\t//=> true\n});\n\nprocessExists.all([process.pid, 'foo']).then(exists => {\n\tconsole.log(exists.get(process.pid));\n\t//=> true\n\tconsole.log(exists.get('foo'));\n\t//=> false\n\tconsole.log(processExists.filterExists(exists));\n\t//=> [process.pid]\n});\n```\n\n\n## API\n\n### processExists(input)\n\nReturns a `Promise<boolean>`.\n\n#### input\n\nType: `number` `string`\n\nProcess ID or name to check.\n\n### processExists.all(input)\n\nReturns a `Promise<Map>` with the process name/ID as key and the status as a boolean value.\n\n#### input\n\nType: `Array<number|string>`\n\nProcess IDs or names to check.\n\n### processExists.filterExists(input)\n\nReturns an `Array<number|string>` with the processes that exist.\n\n#### input\n\nType: `Array<number|string>`\n\nProcess IDs or names to check.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/process-exists.git" }, "scripts": { "test": "xo && ava" }, "version": "3.1.0" }