UNPKG

@sequencemedia/lsof

Version:

Get a list of open files in a convenient structure

17 lines (14 loc) 257 B
import { getRows, toObject } from './common.mjs' /** * @param {string} value * @returns {Array<Record<string, string | number>>} */ export default function toArray (value) { const array = getRows(value) return ( array.map(toObject) ) }