Gathering detailed insights and metrics for unionfs
Gathering detailed insights and metrics for unionfs
Gathering detailed insights and metrics for unionfs
Gathering detailed insights and metrics for unionfs
npm install unionfs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
209 Stars
799 Commits
24 Forks
8 Watching
7 Branches
11 Contributors
Updated on 13 Nov 2024
Minified
Minified + Gzipped
TypeScript (99.45%)
JavaScript (0.55%)
Cumulative downloads
Total Downloads
Last day
-9.4%
44,258
Compared to previous day
Last week
1.9%
240,506
Compared to previous week
Last month
19.3%
974,671
Compared to previous month
Last year
68.3%
7,874,730
Compared to previous year
Creates a union of multiple fs
file systems.
npm install --save unionfs
This module allows you to use multiple objects that have file system fs
API at the same time.
1import { ufs } from 'unionfs'; 2import { fs as fs1 } from 'memfs'; 3import * as fs2 from 'fs'; 4 5ufs.use(fs1).use(fs2); 6 7ufs.readFileSync(/* ... */);
Use this module with memfs
and linkfs
.
memfs
allows you to create virtual in-memory file system. linkfs
allows you to redirect fs
paths.
You can also use other fs-like objects.
1import * as fs from 'fs'; 2import { Volume } from 'memfs'; 3import * as MemoryFileSystem from 'memory-fs'; 4import { ufs } from 'unionfs'; 5 6const vol1 = Volume.fromJSON({ '/memfs-1': '1' }); 7const vol2 = Volume.fromJSON({ '/memfs-2': '2' }); 8 9const memoryFs = new MemoryFileSystem(); 10memoryFs.writeFileSync('/memory-fs', '3'); 11 12ufs.use(fs).use(vol1).use(vol2).use(memoryFs); 13 14console.log(ufs.readFileSync('/memfs-1', 'utf8')); // 1 15console.log(ufs.readFileSync('/memfs-2', 'utf8')); // 2 16console.log(ufs.readFileSync('/memory-fs', 'utf8')); // 3
You can create a Union
instance manually:
1import { Union } from 'unionfs'; 2 3var ufs1 = new Union(); 4ufs1.use(fs).use(vol); 5 6var ufs2 = new Union(); 7ufs2.use(fs).use(/*...*/);
Unlicense - public domain.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 4/22 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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