1.1.1 • Published 3 months ago

fs-handlers v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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);
})()