{"name":"process-exists","version":"3.1.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":"d39a601d3eb57ca748c89c151c526f5ddcadde09","bugs":{"url":"https://github.com/sindresorhus/process-exists/issues"},"homepage":"https://github.com/sindresorhus/process-exists#readme","_id":"process-exists@3.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-X11vso1oNLtyDa2j8fsMol2fph1+5PoQ4vpEc1it/rM8eLuRTmrmTg4jfn82WhNur241AYitgjKCgmlgMRZesw==","shasum":"86cae049e1e7b51382690ec9fd8dfd74ff7a17c8","tarball":"http://registry-npm.ywwl.com/process-exists/download/process-exists-3.1.0.tgz","fileCount":4,"unpackedSize":3394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb7wJacO52aCkgNXvLVI7fH7lkaDNQa50ltiipl0j7lgIgFbCix1WjPIfObnlV80m/YAED5bkhp1sb0jylswr9gcQ="}],"size":1732,"noattachment":false,"key":"/process-exists/-/process-exists-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-exists_3.1.0_1519926718457_0.15633202552212522"},"_hasShrinkwrap":false,"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":1519926718630,"_cnpm_publish_time":1519926718630,"dist-tags":{"latest":"5.0.0"}}