{"name":"ps-list","version":"8.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":"./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"],"devDependencies":{"ava":"^3.15.0","noop-process":"^5.0.0","tsd":"^0.18.0","xo":"^0.46.4"},"types":"./index.d.ts","gitHead":"2d2c0f47635440b3e5ae4a7a7f66107eb56170d4","bugs":{"url":"https://github.com/sindresorhus/ps-list/issues"},"homepage":"https://github.com/sindresorhus/ps-list#readme","_id":"ps-list@8.0.0","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-rBBL6jp5Ccc5fy7p1Os5wDkXlJm5PeLCP2mVz1wLqEtKGo+d19oDApqVbePJoOxNlWeaxJxe28qahc3KWj9ePg==","shasum":"ee622c04a16ac0b29be65d7d920c1fb36c8383d4","tarball":"http://registry-npm.ywwl.com/ps-list/download/ps-list-8.0.0.tgz","fileCount":7,"unpackedSize":495140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh23XzCRA9TVsSAnZWagAAGqwP/iU/90xWLnuTsF065RIA\nqhIWMc0FxGh2KDE5W6njItBGLLdhriuuSuXYeSPCqTbue9dtJmV+Th1DX+n7\nrktcvRBZ/ymMCSRlrOEsbdnMc5u6653b8AG+yqpSPOvW0U2+8YqAOK/a/Cpw\n8Z4KgyIXVoPhf8g4kAJ74uwDah1C3zAVprpPOpzED2blcW40pElj0HNz0MNj\n/Sipo06ZVCehcQZIFgpieNwC7vqouKM/WUiS8ZK3Sk16938i/VBX8c41iA0y\nXWyh7OHdbEfSWtQ5IK69RhqJey+UVkgoE6lMgsq6VVvGwONbzwPWueoQpecq\nVmaQKyl2tUqG8a5qnWgUTDzaJ+T9diavfPZDhU6G5XQitZU1fl4TEEhUUaCw\nLNfgb8ouzd9lblfu7zt1WngI07mUu85MP3v6bYHcDIT9duGYEuRLCDu96GVz\nuoqnFqcEHi/tV4btDecOLnUCU1C/8lLaiOIF3rPXNHZwTe1eq4F9eDvF0s6E\nE8fqF3AHfFy6m3yda6829KegwumAVc056maLnXfvPUHKseTDPxsRpp8E8q5z\nhM5Z0zmyaaulJRwz4UZArv6kRJtdH4LXFEGhgznQS/6hCKcJJl1rfkW/Ea8Y\nYyxMDVCFht71PzgC1sUNJHwO1Z9Qvl9/D+Gc27HfqIOXH2Zs3iX1bPDxMfUS\nKRTk\r\n=4roc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBh5ZdOSBNlxaM/wYvH/T/ciS08tqaX+ENCoxFdrDODoAiEA4d2goql7A9/ydcJoauNYZ7Uh7TxYri3UKtTs90zY/Ng="}],"size":261456,"noattachment":false,"key":"/ps-list/-/ps-list-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ps-list_8.0.0_1636032715557_0.5256755287520265"},"_hasShrinkwrap":false,"readme":"# ps-list\n\n> Get running processes\n\nWorks on macOS, Linux, and Windows.\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}, …]\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","publish_time":1636032715736,"_cnpm_publish_time":1636032715736,"dist-tags":{"latest":"9.0.0"}}