browserify-fs
fs for the browser using level-filesystem and browserify
Last updated 12 years ago by mafintosh .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install browserify-fs 
SYNC missed versions from official npm registry.

browserify-fs

fs for the browser using level-filesystem and browserify

npm install browserify-fs

Usage

To use simply require it and use it as you would fs

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);
		});
	});
});

You can also make browserify replace require('fs') with browserify-fs using

browserify -r fs:browserify-fs

Using the replacement you browserify modules like tar-fs and mkdirp!

Checkout level-filesystem to see which browsers are supported

License

MIT

Current Tags

  • 1.0.0                                ...           latest (12 years ago)

1 Versions

  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |