Gathering detailed insights and metrics for memory-fs
Gathering detailed insights and metrics for memory-fs
Gathering detailed insights and metrics for memory-fs
Gathering detailed insights and metrics for memory-fs
[DEPRECATED use memfs instead] A simple in-memory filesystem. Holds data in a javascript object.
npm install memory-fs
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
5,453,850,231
Last Day
127,070
Last Week
127,070
Last Month
31,801,956
Last Year
614,286,006
882 Stars
80 Commits
76 Forks
16 Watching
9 Branches
86 Contributors
Minified
Minified + Gzipped
Latest Version
0.5.0
Package Id
memory-fs@0.5.0
Size
4.50 kB
NPM Version
6.9.0
Node Version
12.4.0
Publised On
08 Oct 2019
Cumulative downloads
Total Downloads
Last day
0%
127,070
Compared to previous day
Last week
-98.1%
127,070
Compared to previous week
Last month
-14.7%
31,801,956
Compared to previous month
Last year
-34.8%
614,286,006
Compared to previous year
2
A simple in-memory filesystem. Holds data in a javascript object.
1var MemoryFileSystem = require("memory-fs"); 2var fs = new MemoryFileSystem(); // Optionally pass a javascript object 3 4fs.mkdirpSync("/a/test/dir"); 5fs.writeFileSync("/a/test/dir/file.txt", "Hello World"); 6fs.readFileSync("/a/test/dir/file.txt"); // returns Buffer("Hello World") 7 8// Async variants too 9fs.unlink("/a/test/dir/file.txt", function(err) { 10 // ... 11}); 12 13fs.readdirSync("/a/test"); // returns ["dir"] 14fs.statSync("/a/test/dir").isDirectory(); // returns true 15fs.rmdirSync("/a/test/dir"); 16 17fs.mkdirpSync("C:\\use\\windows\\style\\paths");
Copyright (c) 2012-2014 Tobias Koppers
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/9 approved changesets -- score normalized to 7
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More