Files
tryno10/app/code/node_modules/consola/src/utils/error.js
T
2022-04-07 18:09:31 +05:30

17 lines
262 B
JavaScript

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
}