memory-fs

WebJar for memory-fs

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

memory-fs
Last Version

Last Version

0.4.1
Release Date

Release Date

Type

Type

jar
Description

Description

memory-fs
WebJar for memory-fs
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/webpack/memory-fs

Download memory-fs

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/memory-fs/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>memory-fs</artifactId>
    <version>0.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/memory-fs/
implementation 'org.webjars.npm:memory-fs:0.4.1'
// https://jarcasting.com/artifacts/org.webjars.npm/memory-fs/
implementation ("org.webjars.npm:memory-fs:0.4.1")
'org.webjars.npm:memory-fs:jar:0.4.1'
<dependency org="org.webjars.npm" name="memory-fs" rev="0.4.1">
  <artifact name="memory-fs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='memory-fs', version='0.4.1')
)
libraryDependencies += "org.webjars.npm" % "memory-fs" % "0.4.1"
[org.webjars.npm/memory-fs "0.4.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : errno jar [0.1.3,0.2)
org.webjars.npm : readable-stream jar [2.0.1,3)

Project Modules

There are no modules declared in this project.

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)

org.webjars.npm

webpack

Versions

Version
0.4.1
0.3.0
0.2.0