You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fs-extra-async

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-extra-async

Node file system library and fs-extra module promisified

2.0.3
latest
Source
npmnpm
Version published
Weekly downloads
15
150%
Maintainers
1
Weekly downloads
 
Created
Source

fs-extra-async

NPM version Travis AppVeyor Coverage Status

Node file system library and fs-extra module promisified

Why

  • Support POSIX file path cross platform.
  • Support Promise syntax or async function.
  • Support node native syntax.
  • All original fs and fs-extra methods are included.

Install

npm install --save fs-extra-async

Usage

require('fs-extra-async/lib/patch');
var fs = require('fs');
fs.readFile('/etc/hosts', 'utf8').then(data => console.log(data));

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.

Methods

Keywords

fs

FAQs

Package last updated on 20 Jun 2017

Did you know?

Socket

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.

Install

Related posts