# proxy-fs

> A simple proxy filesystem.

Latest version **0.0.10** (published 2016-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install proxy-fs
pnpm add proxy-fs
yarn add proxy-fs
bun add proxy-fs
```

## 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.0.10 |
| Published | 2016-06-28 |
| First published | 2016-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | zswang |
| Maintainers | zswang |
| Keywords | proxy, filesystem, memory, gulp |

## Links

- npm: https://www.npmjs.com/package/proxy-fs
- Repository: https://github.com/zswang/proxy-fs
- Issues: https://github.com/zswang/proxy-fs/issues
- npm.io page: https://npm.io/package/proxy-fs

## 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.0.10 (latest) — 2016-06-28
- 0.0.7 — 2016-06-27
- 0.0.5 — 2016-06-27

## README

proxy-fs
-----

A simple proxy filesystem.

# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]

## example

```js
var mfs = new MemoryFileSystem({});
var pfs = new ProxyFileSystem(function (path) {
  if (/abc/.test(path)) {
    return {
      path: '/data/hello.js',
      fileSystem: mfs
    };
  }
});

mfs.mkdirpSync('/data');
mfs.writeFileSync('/data/hello.js', 'hello');
console.log(String(pfs.readFileSync('/data/abc.js')));
// > hello
```

## License

MIT © [zswang](http://weibo.com/zswang)

[npm-url]: https://npmjs.org/package/proxy-fs
[npm-image]: https://badge.fury.io/js/proxy-fs.svg
[travis-url]: https://travis-ci.org/zswang/proxy-fs
[travis-image]: https://travis-ci.org/zswang/proxy-fs.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/proxy-fs?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/proxy-fs/badge.svg?branch=master&service=github

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