Skip to content
This repository was archived by the owner on Apr 8, 2022. It is now read-only.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

fs-promise-native

NPM version BuildStatus

fs-promise-native is a zero-dependency module that uses node's built-in util.promisify to export thenable versions of fs functions. Typescript declarations included.

Installation

Node.js >= 8 is required. To install, type this at the command line:

npm install fs-promise-native

Usage

const fspn = require('fs-promise-native');

// thenable
fspn.readFile("./example.txt").then(file => console.log(file));

// async/await
async function example() {
    let file = await fspn.readFile("./example.txt");
    console.log(file);
}

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages