{"name":"process-exists","version":"3.0.0","description":"Check if a process is running","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/process-exists.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["process","processes","proc","ps","pid","test","testing","exists","running","check"],"dependencies":{"ps-list":"^4.0.0"},"devDependencies":{"ava":"*","noop-process":"^3.0.0","xo":"*"},"gitHead":"b3ba904ded6c6cfd6cf464c11eb5aeb0441722af","bugs":{"url":"https://github.com/sindresorhus/process-exists/issues"},"homepage":"https://github.com/sindresorhus/process-exists#readme","_id":"process-exists@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-MK0GMLNYLqmUAR+9g4chQgQLqtE5U4Pvg8xwkvxe/EyAjmOniT0sJCs0UeS4B+6mQJpNMibzxmht99fo87fO6Q==","shasum":"75cf6b47a12721c9b4c06880e091da95717ded81","tarball":"http://registry-npm.ywwl.com/process-exists/download/process-exists-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCR/z008JuJ6+EV9zQAgnMDJScyEYSRGMKfJLzcnkREtgIgcLb8Vne83RPVslnPYOQuy0RkxMv5Fk8GPSQUnY2ExjM="}],"size":1541,"noattachment":false,"key":"/process-exists/-/process-exists-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-exists-3.0.0.tgz_1503879134935_0.4591879863291979"},"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":1503879135314,"_cnpm_publish_time":1503879135314,"dist-tags":{"latest":"5.0.0"}}