Socket
Socket
Sign inDemoInstall

browserify-fs

Package Overview
Dependencies
41
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browserify-fs

fs for the browser using level-filesystem and browserify


Version published
Weekly downloads
112K
decreased by-0.3%
Maintainers
1
Install size
1.55 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 14 Apr 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc