UNPKG

list-open-files

Version:
11 lines 418 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const lsof_1 = require("./lib/backends/lsof"); const os_1 = require("os"); async function lsof(opts = {}) { const pids = opts && opts.pids ? opts.pids : [process.pid]; const concurrency = opts.concurrency || (os_1.cpus().length / 2); return lsof_1.lsof(pids, concurrency); } exports.lsof = lsof; //# sourceMappingURL=index.js.map