@erquhart/browserify-fs

1.0.2 • Public • Published

@erquhart/browserify-fs

Note: This is browserify-fs with updated dependencies to fix vulnerabilities.

Security updates from commits by @joseph184.

fs for the browser using level-filesystem, level.js and browserify

npm install @erquhart/browserify-fs

dat

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 can browserify modules like tar-fs and mkdirp!

Checkout level-filesystem and level.js to see which browsers are supported

License

MIT

/@erquhart/browserify-fs/

    Package Sidebar

    Install

    npm i @erquhart/browserify-fs

    Weekly Downloads

    37

    Version

    1.0.2

    License

    none

    Unpacked Size

    2.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • erquhart