{"_id":"@heyikang/ps-list","_rev":"1-3d7a3ba03446d5e8921098353b58f86e","name":"@heyikang/ps-list","dist-tags":{"latest":"8.1.2"},"versions":{"8.1.1":{"name":"@heyikang/ps-list","version":"8.1.1","description":"Get running processes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/heyikang/ps-list.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ps","proc","process","processes","list","running","tasklist","electron"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.46.4"},"types":"./index.d.ts","gitHead":"b837bc2f246febce8b5f053e372a1ff8b18ed7b6","bugs":{"url":"https://github.com/heyikang/ps-list/issues"},"homepage":"https://github.com/heyikang/ps-list#readme","_id":"@heyikang/ps-list@8.1.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3COK8UFiOATZy/Ju/uM7jJsiZwjuEmfQHkHaZYVR7Rj8ii/G1kuYQGcoU+haKeV5dsGb6BD11srP8NhnNOg4cw==","shasum":"1f0383af7f21b26ba9d4554ab3d1082c3f66648d","tarball":"https://registry.npmjs.org/@heyikang/ps-list/-/ps-list-8.1.1.tgz","fileCount":5,"unpackedSize":8028,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID0jW0wT2KK3JqfFvnti6FOp4Fg/W6jo1yVbnyqtdyE9AiA2YpPssQmu+d/ovKR0tRUizfKuEvzrp4KXlAQBNaog3A=="}]},"_npmUser":{"name":"heyikang","email":"jckangkang@gmail.com"},"directories":{},"maintainers":[{"name":"heyikang","email":"jckangkang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ps-list_8.1.1_1688048596352_0.889904499641879"},"_hasShrinkwrap":false},"8.1.2":{"name":"@heyikang/ps-list","version":"8.1.2","description":"Get running processes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/heyikang/ps-list.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ps","proc","process","processes","list","running","tasklist","electron"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.46.4"},"types":"./index.d.ts","gitHead":"762832e027d1aa37b0b1e8e5f16f9be49fdb1bb7","bugs":{"url":"https://github.com/heyikang/ps-list/issues"},"homepage":"https://github.com/heyikang/ps-list#readme","_id":"@heyikang/ps-list@8.1.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cidzpmnfZQ6mGW9cF1QR5I9mMsaW64obcdlo+36Z+CycQPbgOWNU8uTADuPL3NSU969rKSWjwbXZ2MdlIijCLg==","shasum":"a13013f94a77729ebf7796a4d5c91bd83b20443d","tarball":"https://registry.npmjs.org/@heyikang/ps-list/-/ps-list-8.1.2.tgz","fileCount":5,"unpackedSize":8046,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh4+zsVFulPNKZxuxeFbSYv6JCBtJU6QM7vD8NyxvRdQIhAPVkWz1cjGs54H4sYZvZaOe+WbKgQqq60MVhlwqTCrbc"}]},"_npmUser":{"name":"heyikang","email":"jckangkang@gmail.com"},"directories":{},"maintainers":[{"name":"heyikang","email":"jckangkang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ps-list_8.1.2_1688091975989_0.7870908744159706"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-29T14:23:16.233Z","8.1.1":"2023-06-29T14:23:16.491Z","modified":"2023-06-30T02:26:16.228Z","8.1.2":"2023-06-30T02:26:16.124Z"},"maintainers":[{"name":"heyikang","email":"jckangkang@gmail.com"}],"description":"Get running processes","homepage":"https://github.com/heyikang/ps-list#readme","keywords":["ps","proc","process","processes","list","running","tasklist","electron"],"repository":{"type":"git","url":"git+https://github.com/heyikang/ps-list.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/heyikang/ps-list/issues"},"license":"MIT","readme":"# @heyikang/ps-list\n\n> Get running processes, support electron\n\nWorks on macOS, Linux, and Windows.\n\n## Install\n\n```sh\nnpm install @heyikang/ps-list\n```\n\n## Usage\n\n```js\nconst { psList } = require(\"@heyikang/ps-list\");\n// if windows\nconsole.log(\n\tawait psList({\n\t\t// Source: https://github.com/MarkTiedemann/fastlist\n\t\tpslistX64Path: \"fastlist x64 executable path\",\n\t\tpslistIa32Path: \"fastlist x86 executable path\",\n\t})\n);\n//=> [{pid: 3213, name: 'node', cmd: 'node test.js', ppid: 1, uid: 501, cpu: 0.1, memory: 1.5}, …]\n```\n\n## API\n\n### psList(options?)\n\nReturns a `Promise<object[]>` with the running processes.\n\nOn macOS and Linux, the `name` property is truncated to 15 characters by the system. The `cmd` property can be used to extract the full name.\n\nThe `cmd`, `cpu`, `memory`, and `uid` properties are not supported on Windows.\n\n#### options\n\nType: `object`\n\n##### all\n\nType: `boolean`\\\nDefault: `true`\n\nInclude other users' processes as well as your own.\n\nOn Windows this has no effect and will always be the users' own processes.\n\n## Related\n\n- [fastlist](https://github.com/MarkTiedemann/fastlist) - The binary used in this module to list the running processes on Windows\n","readmeFilename":"readme.md"}