qm-fs-readfile
v0.1.1
Published
Read file.
Downloads
1
Readme
qm-fs-readfile
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