Installations
npm install fs-extra-plus
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=8.0.0
Node Version
16.13.0
NPM Version
8.1.4
Score
68.9
Supply Chain
76.5
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
BriteSnow
Download Statistics
Total Downloads
77,186
Last Day
18
Last Week
127
Last Month
489
Last Year
13,377
GitHub Statistics
5 Stars
76 Commits
2 Watching
3 Branches
1 Contributors
Bundle Size
107.91 kB
Minified
32.01 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.6.0
Package Id
fs-extra-plus@0.6.0
Unpacked Size
9.18 kB
Size
2.69 kB
File Count
10
NPM Version
8.1.4
Node Version
16.13.0
Total Downloads
Cumulative downloads
Total Downloads
77,186
Last day
63.6%
18
Compared to previous day
Last week
36.6%
127
Compared to previous week
Last month
-33.6%
489
Compared to previous month
Last year
16.3%
13,377
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Dev Dependencies
4
fs-extra
+ .glob()
(fast-glob) + .saferRemove()
(from basedir by default)
Changelogs
- 0.3.0: Simplified, and completely re-written. Just focused on what we often add on top of fs-extra. Right now, just
.glob()
(fast-glob) and.saferRemove()
example
1import * as fs from 'fs-extra-plus'; 2 3 4async function example(){ 5 6 // can use the normal fs-extra function 7 await fs.ensureDir('/tmp/my-temp/'); 8 await fs.copy('/tmp/myfile', '/tmp/my-temp/mynewfile') 9 10 // fs-extra-plus glob (using fast-glob) 11 const files = await fs.glob('**/*.js'); 12 13 const files = await fs.glob(['**/*.js', '**/*.css'], 'src/'); 14 // Note that when cwd, the return files will have the cwd in the path 15 // e.g., files[0] === 'src/some.ts' (and not as 'some.ts' as in raw fast-glob) 16 17 // or full fast-glob options 18 const files = await fs.glob(['**/*.js', '**/*.css'], {cwd: 'src/', deep: 3}); 19 20 // fs-extra-plus saferRemove 21 fs.saferRemove('../somedir'); // >> Throw error, seems not safe, does not belong to current dir 22 fs.saferRemove('/etc/'); // >> Throw error, seems not safe, does not belong to current dir 23 fs.saferRemove('some-file-in-basedir'); // >> will delete 24 fs.saferRemove(['some-dir/some-file'],'/tmp/'); // >> will delete `some-dir/some-file` from the `/tmp/` dir. 25} 26
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2
/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