Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@absolunet/fss
Advanced tools
graceful-fs / fs-extra sync wrapper with goodies
$ npm install @absolunet/fss
const fss = require('@absolunet/fss');
fss.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
Almost the same as fss.exists
, except that it also validates the case-sensitivity of the path.
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
FAQs
graceful-fs / fs-extra sync wrapper with goodies
The npm package @absolunet/fss receives a total of 75 weekly downloads. As such, @absolunet/fss popularity was classified as not popular.
We found that @absolunet/fss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.