UNPKG
@ezdevlol/memfs
Version:
latest (4.23.0)
4.23.0
In-memory file-system with Node's fs API.
github.com/streamich/memfs
streamich/memfs
@ezdevlol/memfs
/
demo
/
runkit.js
6 lines
(3 loc)
•
134 B
JavaScript
View Raw
1
2
3
4
5
6
const
{ fs } =
require
(
'memfs'
); fs.
writeFileSync
(
'/hello.txt'
,
'Hello World'
);
console
.
log
(fs.
readFileSync
(
'/hello.txt'
,
'utf8'
));