Reads a file to memory with optional caching.
Veradaccio
This project should be published in a locally running npm repo. You can do the following:
npm install -g verdaccio
nohup verdaccio --listen 4873
npm set registry http://localhost:4873/
You can also refer to here
Usage
const Load2Mem=require("load2mem");
let buff=Load2Mem.file("filename.txt");