UNPKG

browserify-fs

Version:

fs for the browser using level-filesystem and browserify

10 lines (8 loc) 244 B
var fs = require('browserify-fs'); fs.mkdir('/home', function() { fs.writeFile('/home/hello-world.txt', 'Hello world!\n', function() { fs.readFile('/home/hello-world.txt', 'utf-8', function(err, data) { console.log(data); }); }); });