Gathering detailed insights and metrics for dir-fs-utils
Gathering detailed insights and metrics for dir-fs-utils
Gathering detailed insights and metrics for dir-fs-utils
Gathering detailed insights and metrics for dir-fs-utils
nodejs-fs-utils
NodeJs FileSystem (FS) extra utilities, walk, fsize ( folder / symlinks / files ), rmdirs,
upath2
A proxy to `path`, replacing `\` with `/` for all results
fs-recurse
Walk through directories asynchronously with callback on each file/folder
utils-fs-read-dir
Reads the contents of a directory.
A NodeJS library that creates several utility functions over the native fs module for directories
npm install dir-fs-utils
Typescript
Module System
Node Version
NPM Version
69.4
Supply Chain
97.3
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (85.79%)
JavaScript (14.21%)
Total Downloads
220,162
Last Day
91
Last Week
1,731
Last Month
6,248
Last Year
79,409
MIT License
8 Commits
1 Watchers
19 Branches
1 Contributors
Updated on Jun 29, 2021
Minified
Minified + Gzipped
Latest Version
1.1.2
Package Id
dir-fs-utils@1.1.2
Unpacked Size
9.47 kB
Size
3.99 kB
File Count
8
NPM Version
6.14.10
Node Version
14.15.4
Cumulative downloads
Total Downloads
Last Day
-75.5%
91
Compared to previous day
Last Week
-17.7%
1,731
Compared to previous week
Last Month
-10.5%
6,248
Compared to previous month
Last Year
-4.1%
79,409
Compared to previous year
dir-fs-utils
is aiming to be a collection of the utility functions for directories build on top of the native fs
module.
1npm i dir-fs-utils
Then anywhere in your code.
1import { DirUtils } from 'dir-fs-utils`
or
1const { DirUtils } = require('dir-fs-utils');
1await DirUtils.getFolderSize(folder_path); 2 3await DirUtils.listFolderContent(folder_path);
(1)
1async listFolderContent(path: string): Promise<string[]> {}
This method will return an array with all the files in a folder.
If the provided path does not exist or is not accessible, then it will generate an error.
(2)
1async getFolderSize(path: string): Promise<number> {}
This method will return the total size of a folder in bytes.
If the provided path does not exist or is not accessible, then it will generate an error.
(3)
1async unwrap(folderPath: string, options?: UnwrapOptions): Promise<Map<string, string>>
1export interface UnwrapOptions { 2 keepFolder?: boolean; 3 force?: boolean; 4}
This method will open the contents of a folder. By default, it will remove the original folder and undo only files for which the destination path does not exist.
The returned value is a map that will contain all the files that failed to be unwrapped. If the size of the map is 0, then all the files were unwrapped successfully.
keepFolder?:boolean
- if this property is set to true, then the original folder will remain intact(files will not be deleted)force?:boolean
- if this property is set to true, then the destination of the unwrapped files will overwrittenPull requests and stars are always welcome. Please check the guidelines.
Author - Stan Georgian
This project is licensed under the MIT License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
Found 0/8 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
detected GitHub workflow tokens with excessive permissions
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
32 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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