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
/
createWriteStream.ts
9 lines
(6 loc)
•
189 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{vol}
from
'../src/index'
;
const
ws = vol.
createWriteStream
(
'/readme'
,
'utf8'
); ws.
end
(
'lol'
); ws.
on
(
'finish'
,
() =>
{
console
.
log
(vol.
readFileSync
(
'/readme'
).
toString
()); });