# @erquhart/browserify-fs

> fs for the browser using level-filesystem and browserify

Latest version **1.0.2** (published 2019-09-06) · 0 weekly downloads

## Install

```sh
npm install @erquhart/browserify-fs
pnpm add @erquhart/browserify-fs
yarn add @erquhart/browserify-fs
bun add @erquhart/browserify-fs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-09-06 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | erquhart |
| Keywords | browserify, fs, level, filesystem |

## Links

- npm: https://www.npmjs.com/package/@erquhart/browserify-fs
- Repository: https://github.com/erquhart/browserify-fs
- Homepage: https://github.com/erquhart/browserify-fs#readme
- Issues: https://github.com/erquhart/browserify-fs/issues
- npm.io page: https://npm.io/package/@erquhart/browserify-fs

## Dependencies (3)

- [levelup](https://npm.io/package/levelup.md) ^4.0.0
- [level-js](https://npm.io/package/level-js.md) ^4.0.0
- [level-filesystem](https://npm.io/package/level-filesystem.md) ^1.2.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-09-06

## README

# @erquhart/browserify-fs

**Note:**
This is [browserify-fs](https://www.npmjs.com/package/browserify-fs) with updated dependencies to fix vulnerabilities.

Security updates from commits by @joseph184.

[fs](http://nodejs.org/api/fs.html) for the browser using [level-filesystem](https://github.com/mafintosh/level-filesystem), [level.js](https://github.com/maxogden/level.js) and [browserify](https://github.com/substack/node-browserify)

	npm install @erquhart/browserify-fs

![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)

## Usage

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

``` js
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](https://github.com/mafintosh/tar-fs) and [mkdirp](https://github.com/substack/node-mkdirp)!

Checkout [level-filesystem](https://github.com/mafintosh/level-filesystem) and [level.js](https://github.com/maxogden/level.js) to see which browsers are supported

## License

MIT

---
_Source: https://npm.io/package/@erquhart/browserify-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
