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
/
12.ts
10 lines
(5 loc)
•
184 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
const
memfs =
require
(
'../lib'
); memfs.
fs
.
writeFileSync
(
'/watson.json'
,
JSON
.
stringify
({
"ocorrencia_id"
:
9001
}));
console
.
log
(memfs.
fs
.
readFileSync
(
'/watson.json'
,
'utf8'
));