New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-async-fs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-async-fs

async node fs

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Installation

Using yarn:

yarn add node-async-fs

Using npm:

npm i node-async-fs

Why node-async-fs?

-use es6 async/await resolve fs model callback

-让 node fs 模块支持 async/await promise.then(() => {}) 语法

Getting started

const fs = require('node-async-fs')
or
const {stat, mkdir} = require('node-async-fs')

// use
fs.mkdir().then(() => {})
   ......

mkdir().then(() => {})
   ......

async function () {
  await mkdir()
  await stat()
  await access()
  ......
}

test

  npm test

Keywords

fs

FAQs

Package last updated on 15 Apr 2018

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