{"name":"ps-list","version":"9.0.0","description":"Get running processes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/ps-list.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["ps","proc","process","processes","list","running","tasklist"],"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^0.59.0"},"_id":"ps-list@9.0.0","gitHead":"9670043961725d24b462ba2500e86528c150112b","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/ps-list/issues"},"homepage":"https://github.com/sindresorhus/ps-list#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.2","dist":{"integrity":"sha512-lxMEoIL/BQlk2KunFzxwUPwMvjFH7x7cmvzSLsSHpyMXl9FFfLUlfKrYwFc4wx/ZaIxxuXC4n8rjQ1CX/tkXVQ==","shasum":"82c678036a237a995eda5872acc39d97fd95a7e1","tarball":"http://registry-npm.ywwl.com/ps-list/download/ps-list-9.0.0.tgz","fileCount":7,"unpackedSize":503713,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8Ufo6bi8T7Qu+D6zH7RLTriLQbq5YKVeHFcaIDXWAawIhAL0kC6bxxbqbDjUorIzjhxKOJyMEiyGjIytp9pL7lnWj"}],"size":270833,"noattachment":false,"key":"/ps-list/-/ps-list-9.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ps-list_9.0.0_1758876756360_0.5086229261431063"},"_hasShrinkwrap":false,"readme":"# ps-list\n\n> Get running processes\n\nWorks on macOS, Linux, and Windows. Windows ARM64 is not supported yet.\n\n## Install\n\n```sh\nnpm install ps-list\n```\n\n## Usage\n\n```js\nimport psList from 'ps-list';\n\nconsole.log(await psList());\n//=> [{pid: 3213, name: 'node', cmd: 'node test.js', ppid: 1, uid: 501, cpu: 0.1, memory: 1.5, path: '/usr/local/bin/node', startTime: 2025-01-15T10:30:00.000Z}, …]\n```\n\n## API\n\n### psList(options?)\n\nReturns a `Promise<ProcessDescriptor[]>` with the running processes.\n\nOn macOS and Linux:\n- The `name` property is truncated to 15 characters by the system\n- The `cmd` property contains the full command line with arguments\n- The `cpu` property is the CPU usage percentage (0-100)\n- The `memory` property is the memory usage percentage (0-100)\n- The `path` property is a best-effort attempt to get the full executable path:\n  - On Linux: reads from `/proc/{pid}/exe` when available\n  - On macOS: extracted from command line when possible\n  - Falls back to `comm` (which may be truncated)\n- The `startTime` property contains the process start time as a Date object\n\nThe `cmd`, `cpu`, `memory`, `uid`, `path`, and `startTime` properties are not available 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 user's 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","publish_time":1758876756623,"_cnpm_publish_time":1758876756623,"dist-tags":{"latest":"9.0.0"}}