Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

memory-fs

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

memory-fs

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

    0.5.0latest

Version published
Maintainers
1
Weekly downloads
22,874,358
increased by0.38%

Weekly downloads

Changelog

Source

Features

  • allow to pass encoding
  • add operation to error message (align to node.js)

Bugfixes

  • Normalize UNC paths correctly
  • fix and improve error message
  • fix join/normalize bug when ./.. is used

Readme

Source

memory-fs

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

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 variants 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)

Keywords

FAQs

What is memory-fs?

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

Is memory-fs popular?

The npm package memory-fs receives a total of 19,867,847 weekly downloads. As such, memory-fs popularity was classified as popular.

Is memory-fs well maintained?

We found that memory-fs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 08 Oct 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc