Gathering detailed insights and metrics for @absolunet/fss
Gathering detailed insights and metrics for @absolunet/fss
npm install @absolunet/fss
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
85,551
Last Day
32
Last Week
137
Last Month
634
Last Year
12,179
2 Stars
68 Commits
3 Watching
3 Branches
2 Contributors
Latest Version
1.7.0
Package Id
@absolunet/fss@1.7.0
Size
6.47 kB
NPM Version
7.5.4
Node Version
15.8.0
Publised On
24 Feb 2021
Cumulative downloads
Total Downloads
Last day
33.3%
32
Compared to previous day
Last week
34.3%
137
Compared to previous week
Last month
35.5%
634
Compared to previous month
Last year
4.3%
12,179
Compared to previous year
graceful-fs / fs-extra sync wrapper with goodies
1$ npm install @absolunet/fss
1const fss = require('@absolunet/fss'); 2 3fss.move('/path1/path2/path3', '/path4');
fs
is graceful-fs
fse
is fs-extra
Maps fs.accessSync
Maps fs.appendFileSync
Maps fs.chmodSync
Maps fs.chownSync
Maps fs.closeSync
Compresses file using gzip
Return String
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.copySync
Maps fs.copyFileSync
Decompresses file using gzip
Return String
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.emptyDirSync
Maps fse.ensureDirSync
Maps fse.ensureFileSync
Maps fse.ensureLinkSync
Maps fs.existsSync
Maps fs.fchmodSync
Maps fs.fchownSync
Maps fs.fdatasyncSync
Maps fs.fstatSync
Maps fs.fsyncSync
Maps fs.ftruncateSync
Maps fs.futimesSync
Maps fs.lchmodSync
Maps fs.lchownSync
Maps fs.linkSync
Maps fs.lstatSync
Maps fs.mkdirSync
Maps fse.mkdirpSync
Maps fse.mkdirsSync
Maps fs.mkdtempSync
Maps fse.moveSync
Maps fs.openSync
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.outputFileSync
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 space.
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.pathExistsSync
Maps fs.readSync
Reads and decompresses file using gzip.
Return String
Required
Type: String
Path of file to read.
Maps fs.readdirSync
Maps fs.readFileSync
Reads a JSON file and then parses it into an object.
Return 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.
Return 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.readlinkSync
Reads a XML file and then parses it into an object.
Return Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Type: Object
xml2jsParser.parseStringSync options.
Reads a YAML file and then parses it into an object.
Return Object
Required
Type: String
Path of file to read. (If it ends with .gz
it will be decompressed using gzip)
Maps fs.realpathSync
Maps fse.removeSync
Uses delete-empty to recursively delete all empty folders in a directory and child directories
Return 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.renameSync
Maps fs.rmdirSync
Uses klaw-sync 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.statSync
Maps fs.symlinkSync
Maps fs.truncateSync
Maps fs.unlinkSync
Maps fs.utimesSync
Maps fs.writeSync
Compresses and writes content to file using gzip.
Required
Type: String
Path of file to write.
Required
Type: String
Content to write.
Maps fs.writeFileSync
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 space.
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