fs-handlers
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

fs-handlers filehandler

a simple interface and handler for streaming file handler using fs-handlers filehandler package

The demos can be found in the folder demos

USAGE:

const filehandler = require("../index").default;
const FileHandler = filehandler.FileHandler;
const fs = new FileHandler("./demos/demos.test.txt", "utf8");
(async () => {
  let tst = await fs.readFileStreaming();
  tst = tst.toString(fs.options);
  console.log("read: \n\n", tst);
  let written = await fs.writeFileStreaming(tst);
  console.log("written: ", written);
})()

Package Sidebar

Install

npm i fs-handlers

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

1.3 MB

Total Files

38

Last publish

Collaborators

  • ganeshkbhat