{"name":"ps-list","version":"8.1.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","tsd":"^0.18.0","xo":"^0.46.4"},"types":"./index.d.ts","gitHead":"0ed756ebcf714ac36c661a1f15142b0d5e11c955","bugs":{"url":"https://github.com/sindresorhus/ps-list/issues"},"homepage":"https://github.com/sindresorhus/ps-list#readme","_id":"ps-list@8.1.0","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-NoGBqJe7Ou3kfQxEvDzDyKGAyEgwIuD3YrfXinjcCmBRv0hTld0Xb71hrXvtsNPj7HSFATfemvzB8PPJtq6Yag==","shasum":"aded36339500cd929f1425ece9bf58ac6d3a213e","tarball":"http://registry-npm.ywwl.com/ps-list/download/ps-list-8.1.0.tgz","fileCount":7,"unpackedSize":494871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5bm9CRA9TVsSAnZWagAA7dIP/2CWQ3c7+qURBZplb05a\nALBbuT60M818f9g+2Gbpz15Y9PaNOsniJb0qS4yKUZDl/Ba+adD8Wly7Cr+Q\nkyvkzytF76JUmgLFvVuppQKO4H2hZhJEzjV6eGGzWXhHAqo0DZaQuKd7Edjr\nECvrYl8pwp/kHCSMQZyPfx3h6wqB4PR4QnHYEeQDOWpLZFOU5pQAPznenV5B\nSa9+tawZtrw92EU2gbqb3DTkBlBHVGGzjasm+3/aWunF555S4e3fkLgF8vZg\ndXSD/qsnjjoNlaKk1b9UHZuysnWwCW6zSpJHznpaVWkNsWOmoRJWT2AMHErA\n8rLsZzXOAPCwf7kTbJya6TJhxGh+Zp/45ty++VtDPkUYY837zRF0V1SKXgpq\n4Vbk/rjjaJUMYEJ3pKPss0woYplwwFuTtx3etztgooW3u4/izb8oB/qgYlB6\nr8aK6tEnOADg6PsHuIays3WhxS3ieMsNOSjDvbgv06O6Zf2Z4GsNBMGDXG1L\nYy7TaT0XaHtbYr4vNrRrWhjPp/FpxWsY65Oq6AQDUnuxklMNIvSgRumtfeHe\nyIc+7J3Qd+carZhiLJ+U8aquc1m4DH1rh3Z+1w9EnUEVng2cQONCwyNziZ0I\nnhzEf2waRZ4h49+iFYGdToMjD0tqgTonafzQbjFVrJ+glnW2jyfg4hrmJ0RI\nry6K\r\n=Fpct\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSc/HDuqdqI09EPvEqZwLpdWOkyX/mcDk1Jnfm8pX3+AiEA6x1BWI5xbAGRnUq8UkTcF38ViIF3nkXTOs9Q1ca9Nv4="}],"size":261345,"noattachment":false,"key":"/ps-list/-/ps-list-8.1.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.1.0_1642445245302_0.11130665101830872"},"_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":1642445245498,"_cnpm_publish_time":1642445245498,"dist-tags":{"latest":"9.0.0"}}