UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge

17 lines (13 loc) 262 B
import { sep } from 'path' export function parseStack (stack) { const cwd = process.cwd() + sep const lines = stack .split('\n') .splice(1) .map(l => l .trim() .replace('file://', '') .replace(cwd, '') ) return lines }