{"name":"process-exists","version":"2.0.0","description":"Check if a process is running","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/process-exists"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["process","proc","ps","proc","pid","test","testing","exists","running","check"],"dependencies":{"pify":"^2.2.0","pinkie-promise":"^1.0.0","ps-list":"^2.0.0"},"devDependencies":{"ava":"*","noop-process":"^2.0.0","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"2f038a41ed032f7495184b475c11b7429fde68cf","bugs":{"url":"https://github.com/sindresorhus/process-exists/issues"},"homepage":"https://github.com/sindresorhus/process-exists","_id":"process-exists@2.0.0","_shasum":"5a88bdd2913d531e6a68f50695df5afcb11d0364","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5a88bdd2913d531e6a68f50695df5afcb11d0364","tarball":"http://registry-npm.ywwl.com/process-exists/download/process-exists-2.0.0.tgz","integrity":"sha512-wxAASbJ0iymyh8McQTm5MzLU0KrFAObLJYWXgLSVXGJVFzLWZLcPmAJGpVvQNNI9yqKpt9zG9SGjC6YSIY4YSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi5C9iiyyq/Khvq36QShCGtRz8JE3KCpfGhsufpa2j8AIhAPohMyZhMLeYbXLiA0pz1qPxBOqj/IxEt5qwYIhuSRVQ"}],"size":1656,"noattachment":false,"key":"/process-exists/-/process-exists-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# process-exists\n\n> Check if a process is running\n\n## Install\n\n```sh\nnpm install process-exists\n```\n\n## Usage\n\n```js\nimport {processExists, processExistsMultiple, filterExistingProcesses} from 'process-exists';\n\nconsole.log(await processExists(process.pid));\n//=> true\n\nconst exists = await processExistsMultiple([process.pid, 'foo']);\n\nconsole.log(exists.get(process.pid));\n//=> true\n\nconsole.log(exists.get('foo'));\n//=> false\n\nconsole.log(filterExistingProcesses(exists));\n//=> [process.pid]\n```\n\n## API\n\n### processExists(input)\n\nCheck if a process exists.\n\nReturns a `Promise<boolean>`.\n\n#### input\n\nType: `number | string`\n\nThe process ID or name to check.\n\n### processExistsMultiple(input)\n\nCheck multiple processes if they exist.\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\nThe process IDs or names to check.\n\n### filterExistingProcesses(input)\n\nFilter processes that exist.\n\nReturns an `Array<number | string>` with the processes that exist.\n\n#### input\n\nType: `Array<number | string>`\n\nThe process IDs or names to check.\n","publish_time":1445116958700,"_cnpm_publish_time":1445116958700,"dist-tags":{"latest":"5.0.0"}}