Gathering detailed insights and metrics for @absolunet/fsp
Gathering detailed insights and metrics for @absolunet/fsp
npm install @absolunet/fsp
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
53,170
Last Day
16
Last Week
79
Last Month
315
Last Year
8,546
2 Stars
68 Commits
3 Watching
3 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.7.0
Package Id
@absolunet/fsp@1.7.0
Size
6.80 kB
NPM Version
7.5.4
Node Version
15.8.0
Publised On
24 Feb 2021
Cumulative downloads
Total Downloads
Last day
60%
16
Compared to previous day
Last week
17.9%
79
Compared to previous week
Last month
5.7%
315
Compared to previous month
Last year
41.5%
8,546
Compared to previous year
graceful-fs / fs-extra promise wrapper with goodies
1$ npm install @absolunet/fsp
1const fsp = require('@absolunet/fsp'); 2 3fsp.chmodPattern('/path1/path2/**/*.js', 0o775).then(() => { 4 console.log('Yeah!'); 5});
fs
is graceful-fs
fse
is fs-extra
Maps fs.promises.access
Maps fs.promises.chmod
Applies fs.chmod
for matching glob
pattern file/dir.
Required
Type: String
glob pattern.
Required
Type: Number
File mode.
Type: Object
glob options.
Maps fs.promises.chown
Compresses file using gzip
Promise
returns destination
Required
Type: String
Path of file to compress.
Type: String
Default: Same as source with a .gz
added at the end
Path of file when compressed.
Maps fse.copy
Maps fs.promises.copyFile
Decompresses file using gzip
Promise
returns destination
Required
Type: String
Path of file to decompress.
Type: String
Default: Same as source with the .gz
removed at the end
Path of file when decompressed.
Maps fse.emptyDir
Maps fse.ensureDir
Maps fse.ensureFile
Maps fse.ensureLink
Maps fse.ensureSymlink
Maps fs.promises.lchmod
Maps fs.promises.lchown
Maps fs.promises.link
Maps fs.promises.lstat
Merge multiple files into a single file
Required
Type: Array
of String
Path of files to merge.
Required
Type: String
Path of merged file. (If it ends with .gz
it will be compressed using gzip)
Maps fs.promises.mkdir
Maps fse.mkdirp
Maps fse.mkdirs
Maps fs.promises.mkdtemp
Maps fse.move
Maps fs.promises.open
Almost the same as writeCompressed, except that if the directory does not exist, it's created.
Required
Type: String
Path of file to write.
Required
Type: String
Content to write.
Maps fse.outputFile
Almost the same as writeJson, except that if the directory does not exist, it's created.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Function
JSON.stringify replacer.
Type: String
or Number
JSON.stringify space.
Almost the same as writeJson5, except that if the directory does not exist, it's created.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Function
JSON5.stringify replacer.
Type: String
or Number
JSON5.stringify replacer.
Almost the same as writeXml, except that if the directory does not exist, it's created.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Object
xml2js.Builder().buildObject options.
Almost the same as writeYaml, except that if the directory does not exist, it's created.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Maps fse.pathExists
Reads and decompresses file using gzip.
Promise
returns an String
Required
Type: String
Path of file to read.
Maps fs.promises.readdir
Maps fs.promises.readFile
Reads a JSON file and then parses it into an object.
Promise
returns an Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Type: Function
JSON.parse reviver.
Reads a JSON5 file and then parses it into an object.
Promise
returns an Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Type: Function
JSON5.parse reviver.
Maps fs.promises.readlink
Reads a XML file and then parses it into an object.
Promise
returns an Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Type: Object
xml2js.parseString options.
Reads a YAML file and then parses it into an object.
Promise
returns an Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Maps fs.promises.realpath
Maps fse.remove
Uses delete-empty to recursively delete all empty folders in a directory and child directories
Promise
returns an Array
of deleted directories
Required
Type: String
Path of root directory to scan
Uses rimraf to delete files and directories via a globbing pattern
Required
Type: String
Globbing pattern
Maps fs.promises.rename
Maps fs.promises.rmdir
Uses klaw to scan directory for files or directories.
Return Array
of files / directories
Required
Type: String
Path of directory to scan.
Required
Type: String
Scan for file
or dir
Type: Boolean
Scan in subdirectories
Default: false
Type: String
Return full absolute path instead of relative path from scanned directory
Default: false
Type: String
Filter results with minimatch pattern
Default: '**'
Type: Boolean
Keep junk files (also filters out .gitkeep
)
Default: false
Maps fs.promises.stat
Maps fs.promises.symlink
Maps fs.promises.truncate
Maps fs.promises.unlink
Maps fs.promises.utimes
Compresses and writes content to file using gzip.
Required
Type: String
Path of file to write.
Required
Type: String
Content to write.
Writes an object to a JSON file.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Function
JSON.stringify replacer.
Type: String
or Number
JSON.stringify space.
Writes an object to a JSON5 file.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Function
JSON5.stringify replacer.
Type: String
or Number
JSON5.stringify replacer.
Writes an object to a XML file.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
Type: Object
xml2js.Builder().buildObject options.
Writes an object to a YAML file.
Required
Type: String
Path of file to write. (If it ends with .gz
it will be compressed using gzip)
Required
Type: Object
Object to write.
MIT © Absolunet
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/25 approved changesets -- score normalized to 0
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
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