0.1.1 • Published 6 years ago

qm-fs-readfile v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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