[DEPRECATED use memfs instead] A simple in-memory filesystem. Holds data in a javascript object.
Installations
npm install memory-fs
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=4.3.0 <5.0.0 || >=5.10
Node Version
12.4.0
NPM Version
6.9.0
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
webpack
Download Statistics
Total Downloads
5,453,850,231
Last Day
127,070
Last Week
127,070
Last Month
31,801,956
Last Year
614,286,006
GitHub Statistics
882 Stars
80 Commits
76 Forks
16 Watching
9 Branches
86 Contributors
Bundle Size
37.14 kB
Minified
10.92 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
5,453,850,231
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
memory-fs
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");
License
Copyright (c) 2012-2014 Tobias Koppers
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 7/9 approved changesets -- score normalized to 7
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 29 are checked with a SAST tool
Reason
40 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq
- Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f
- Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p
- Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv
- Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8
- Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65
- Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-jcpv-g9rr-qxrc
- Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq
- Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm
- Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f
- Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-7xfp-9c55-5vqj
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472
Score
2.7
/10
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