UNPKG
@forabi/memfs
Version:
latest (2.7.2)
2.7.2
In-memory file-system with Node's fs API.
github.com/streamich/memfs
streamich/memfs
@forabi/memfs
/
demo
/
throw-error.ts
5 lines
(3 loc)
•
121 B
text/typescript
View Raw
1
2
3
4
5
const
errors =
require
(
'../src/internal/errors'
);
const
err =
new
errors.
TypeError
(
'ENOENT'
,
'Test'
);
console
.
log
(err);