UNPKG

modern-errors-clean

Version:
17 lines (11 loc) 258 B
import process from"node:process"; import cleanStack from"clean-stack"; const properties=({error})=>{ const basePath=process.cwd(); const stack=cleanStack(error.stack,{pretty:true,basePath}); return{stack} }; export default{ name:"stack", properties };