# mountfs

> fs-compatible module with the ability to mount other fs-compatible modules at specific locations

Latest version **0.5.0** (published 2017-01-17) · BSD license · 0 weekly downloads

## Install

```sh
npm install mountfs
pnpm add mountfs
yarn add mountfs
bun add mountfs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2017-01-17 |
| First published | 2013-11-03 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Andreas Lind |
| Maintainers | papandreou, gustavnikolaj |
| Keywords | file system, filesystem, fs, mount point, mount points, mount, mountpoint, mountpoints |

## Links

- npm: https://www.npmjs.com/package/mountfs
- Repository: https://github.com/papandreou/node-mountfs
- Homepage: https://github.com/papandreou/node-mountfs#readme
- Issues: https://github.com/papandreou/node-mountfs/issues
- npm.io page: https://npm.io/package/mountfs

## Dependencies (3)

- [async](https://npm.io/package/async.md) =0.2.9
- [passerror](https://npm.io/package/passerror.md) 0.0.2
- [underscore](https://npm.io/package/underscore.md) =1.5.2

## 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

- 0.5.0 (latest) — 2017-01-17
- 0.4.2 — 2016-08-22
- 0.4.1 — 2016-08-05
- 0.4.0 — 2016-07-23
- 0.3.0 — 2016-07-22
- 0.2.1 — 2016-03-21
- 0.2.0 — 2016-03-21
- 0.1.5 — 2015-12-20
- 0.1.4 — 2015-12-19
- 0.1.3 — 2015-06-02
- 0.1.2 — 2015-06-01
- 0.1.1 — 2013-11-03
- 0.1.0 — 2013-11-03

## README

# mountfs

Allows to mount an fs-module compatible module as you would mount a
device on linux.

# Usage

```js
var fs = require('fs');
var mountFs = require('mountfs');

mountFs.patchInPlace();

// calling the patchInPlace method, will add two methods to the fs
// module; mount and unmount.

fs.mount('/home/john/mountPath', fileSystemToBeMounted);

// the variable fileSystemToBeMounted should be a fs-compatible
// implementation. It will transparently be mounted and all methods on
// fs will work as you expect.

fs.readFileSync('/home/john/mountPath/foobar.txt', 'utf-8');

fs.unmount('/home/john/mountPath');
```

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