UNPKG

browsertime

Version:

Get performance metrics from your web page using Browsertime.

6 lines (5 loc) 193 B
import { execaCommand as command } from 'execa'; export async function getNumberOfRunningProcesses() { const { stdout } = await command('ps aux | wc -l', { shell: true }); return stdout; }