
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
fs-extra-async
Advanced tools
Node file system library and fs-extra module promisified
This module is a drop-in replacement for the native node file system module and the augmented fs-extra module.
Additionally, it creates promisified versions of all fs
's and fs-extra
's async methods, using any-promise. These methods are named the same as the original fs
/fs-extra
methods with 'Async'
added to the end of the method names.
So instead of:
var fs = require('fs');
fs.readFile(path, function(err, data) {
console.log(data);
});
You can now:
var fs = require('fs-extra-async');
fs.readFileAsync(path).then(function(data) {
console.log(data);
});
With ES2017, this will allow you to use async functions:
import fs from 'fs-extra-async';
(async function fn(args){
var data = await fs.readJsonAsync('data.json');
await fs.outputFileAsync('/tmp/markdown/readme.md', data.readme.markdown);
await fs.outputFileAsync('/tmp/markdown/doc.md', data.doc.markdown);
await require('open')('/tmp/markdown/readme.md');
await fs.removeAsync('/tmp/markdown');
})();
All original fs
and fs-extra
methods are included unmodified.
Detects a Promise
implementation using any-promise. If you have a preferred implementation, or are working in an environment without a global implementation, you must explicitly register a Promise
implementation and it will be used. See any-promise for details.
Note that fs-extra
depends on graceful-fs
, so you will get the benefits of both libraries.
FAQs
Node file system library and fs-extra module promisified
The npm package fs-extra-async receives a total of 7 weekly downloads. As such, fs-extra-async popularity was classified as not popular.
We found that fs-extra-async 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.