{"id":725,"url":"https://github.com/sindresorhus/ps-list","last_synced_at":"2025-05-15T13:06:34.649Z","repository":{"id":991355,"uuid":"36581913","full_name":"sindresorhus/ps-list","owner":"sindresorhus","description":"Get running processes","archived":false,"fork":false,"pushed_at":"2022-12-26T11:47:38.000Z","size":339,"stargazers_count":274,"open_issues_count":4,"forks_count":28,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-03T07:26:49.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-05-31T00:52:31.000Z","updated_at":"2025-03-09T00:55:09.000Z","dependencies_parsed_at":"2023-01-13T10:50:01.969Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/ps-list","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fps-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fps-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fps-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fps-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/ps-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253666386,"owners_count":21944666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:29.803Z","updated_at":"2025-05-15T13:06:29.640Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript","system (系统)","Libraries"],"sub_categories":["Processes"],"readme":"# ps-list\n\n\u003e 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//=\u003e [{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\u003cobject[]\u003e` 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fps-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fps-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fps-list/lists"}