node-ejs-renderer/node_modules/memfs/demo/runkit.js
2024-06-09 13:55:01 -04:00

6 lines
134 B
JavaScript

const { fs } = require('memfs');
fs.writeFileSync('/hello.txt', 'Hello World');
console.log(fs.readFileSync('/hello.txt', 'utf8'));