Sha256: 96387f4d25d4d1bac8d32ad526f37c16a57e290b6cdc0cdfe601c3e9102057e5

Contents?: true

Size: 758 Bytes

Versions: 62

Compression:

Stored size: 758 Bytes

Contents

# memory-fs

A simple in-memory filesystem. Holds data in a javascript object.

``` javascript
var MemoryFileSystem = require("memory-fs");
var fs = new MemoryFileSystem(); // Optionally pass a javascript object

fs.mkdirpSync("/a/test/dir");
fs.writeFileSync("/a/test/dir/file.txt", "Hello World");
fs.readFileSync("/a/test/dir/file.txt"); // returns Buffer("Hello World")

// Async variantes too
fs.unlink("/a/test/dir/file.txt", function(err) {
	// ...
});

fs.readdirSync("/a/test"); // returns ["dir"]
fs.statSync("/a/test/dir").isDirectory(); // returns true
fs.rmdirSync("/a/test/dir");

fs.mkdirpSync("C:\\use\\windows\\style\\paths");
```

## License

Copyright (c) 2012-2014 Tobias Koppers

MIT (http://www.opensource.org/licenses/mit-license.php)

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
smock-0.1.268 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.267 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.266 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.265 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.264 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.263 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.262 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.261 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.260 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.259 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.258 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.256 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.255 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.254 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.253 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.252 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.251 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.250 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.249 node_modules/webpack/node_modules/memory-fs/README.md
smock-0.1.247 node_modules/webpack/node_modules/memory-fs/README.md