UNPKG

process-stats

Version:

Display dynamic real-time information about running Node.js process

14 lines (10 loc) 280 B
'use strict' const createTop = require('process-top') const process = require('./src/process') const os = require('./src/os') module.exports = opts => { const top = createTop(opts) const fn = () => ({ ...os(top), ...process(top) }) fn.destroy = top.destroy return fn }