# virtual-fs

> Abstraction for fs virtual usage

Latest version **0.0.1** (published 2014-11-16) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-11-16 |
| First published | 2014-09-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | fritx |

## Links

- npm: https://www.npmjs.com/package/virtual-fs
- Repository: git@github.com:fritx/virtual-fs
- Homepage: https://github.com/fritx/virtual-fs
- Issues: https://github.com/fritx/virtual-fs/issues
- npm.io page: https://npm.io/package/virtual-fs

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1

## Recent versions

- 0.0.1 (latest) — 2014-11-16
- 0.0.0 — 2014-09-27

## README

# virtual-fs

Abstraction for fs virtual usage

## Usage

```js
var Vfs = require('virtual-fs')
var vfs = new Vfs({
  'readme': 'hello!',
  'license': 'mit',
  'node_modules': {
    'lodash': 'lodash.js'
  }
}, 'node_modules')
vfs.readFileSync('lodash/lodash.js')
vfs.writeFile('/readme', 'damn', function(err){/**/})
```

## API Supported

- writeFile
- readFile
- unlink
- mkdir
- readdir
- rmdir
- stat

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