芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/.nvm/versions/node/v12.22.1/lib/node_modules/pm2/node_modules/ps-list/index.d.ts
declare namespace psList { interface Options { /** Include other users' processes as well as your own. On Windows this has no effect and will always be the users' own processes. @default true */ readonly all?: boolean; } interface ProcessDescriptor { readonly pid: number; readonly name: string; readonly ppid: number; /** Not supported on Windows. */ readonly cmd?: string; /** Not supported on Windows. */ readonly cpu?: number; /** Not supported on Windows. */ readonly memory?: number; /** Not supported on Windows. */ readonly uid?: number; } } declare const psList: { /** Get running processes. @returns List of running processes. @example ``` import psList = require('ps-list'); (async () => { console.log(await psList()); //=> [{pid: 3213, name: 'node', cmd: 'node test.js', ppid: 1, uid: 501, cpu: 0.1, memory: 1.5}, …] })(); ``` */ (options?: psList.Options): Promise
; // TODO: remove this in the next major version, refactor the whole definition to: // declare function psList(options?: psList.Options): Promise
; // export = psList; default: typeof psList; }; export = psList;