qm-fs-readfile

0.1.1 • Public • Published

logo-qm

qm-fs-readfile npm version Build Status code style: prettier

Read asynchronously content of the file. Use only in node.js above v.8 due to util.promisify usage.

Installation

$ npm i qm-fs-readfile

Usage

import readFile from "qm-fs-readfile";

(async () => {
  const content = await readFile(pathToFile, encoding); // default encoding: "utf8"
})();

Test

Tests are written with ava. Run by:

npm run start:test

License

MIT © qaraluch

Readme

Keywords

none

Package Sidebar

Install

npm i qm-fs-readfile

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

3.36 kB

Total Files

4

Last publish

Collaborators

  • qaraluch