fs-handlers
v1.1.1
Published
a simple interface and handler for streaming file handler using streamfs filehandler package
Downloads
73
Maintainers
Readme
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);
})()