{"name":"process-exists","version":"1.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":"node test.js"},"files":["index.js"],"keywords":["process","proc","ps","proc","pid","test","testing","exists","running","check"],"dependencies":{"ps-list":"^2.0.0"},"devDependencies":{"ava":"0.0.4","noop-process":"^1.0.1"},"gitHead":"2bcb6560d010c7038315e63269bc9746250757cd","bugs":{"url":"https://github.com/sindresorhus/process-exists/issues"},"homepage":"https://github.com/sindresorhus/process-exists","_id":"process-exists@1.0.0","_shasum":"3e41db81e00b4f6f744446f601022142d3249161","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e41db81e00b4f6f744446f601022142d3249161","tarball":"http://registry-npm.ywwl.com/process-exists/download/process-exists-1.0.0.tgz","integrity":"sha512-B9aKjJgHYTAvg8zaXv/Wk5NhFXmRhowQI2oMBtzpaRKGgLhk24yVfzOeJ7D+gBB3rcWZRYXQWDR/UXB1Nd8kaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBC2IrTEaJlWl4JCezh+5OLkWMauCCnd/X3URDBGwRGaAiEAlUUbTGAAJL4BPI7LRFKPnEGdXPLca3KqeuK3hFrzBNo="}],"size":1599,"noattachment":false,"key":"/process-exists/-/process-exists-1.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":1434829370161,"_cnpm_publish_time":1434829370161,"dist-tags":{"latest":"5.0.0"}}