
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
fse is fs as promises, extended, and dependency-free. It features;
fs.mkdir
, fs.mkdirSync
, fs.rmdir
, fs.rmdirSync
,
fs.writeFile
, and fs.writeFileSync
methods allowing recursive
modification of the file system, and;fs.copydir
, fs.copydirSync
, fs.copyFile
, fs.copyFileSync
,
fs.readJson
, fs.readJsonSync
, fs.touchFile
, and fs.touchFileSync
methods.fse.copydir(source, target)
<string>
| <Buffer>
| <URL>
<string>
| <Buffer>
| <URL>
Promised copying of the contents of a source directory to a target directory.
target
may be used to create otherwise non-existent directories.
fse.copyFile(source, target)
<string>
| <Buffer>
| <integer>
filename or file descriptor<string>
| <Buffer>
| <integer>
filename or file descriptorPromised copying of a source file to a target file, replacing the target file
if it already exists. target
may be used to create otherwise non-existent
directories.
fse.readJson(path)
<string>
| <Buffer>
| <integer>
filename or file descriptorPromised reading of the entire contents of a JSON file, constructing the JavaScript value or object described by the file. Resolves as the contents of the file, or rejects with an error.
fse.touchFile(path)
<string>
| <Buffer>
| <integer>
filename or file descriptorPromised existence of a file, creating the file if it does not exist. path
may be used to create otherwise non-existent directories.
All existing fs methods are available.
fse uses the CC0 “No Rights Reserved” license.
4.0.1 (November 7, 2017)
new Buffer()
call with Buffer.alloc()
fs.promises
.FAQs
fs: then-ified, extended, and dependency-free
We found that fse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.