readfilesyncwithcache

Cache files read using fs.readFileSync.

Usage no npm install needed!

<script type="module">
  import readfilesyncwithcache from 'https://cdn.skypack.dev/readfilesyncwithcache';
</script>

README

Overview

Cache files read using fs.readFileSync.

Use

Install

npm install readfilesyncwithcache

JavaScript Code:


var fs = require('fs');
// always require after requiring fs.
require('readfilesyncwithcache');

//Use regular fs.readFileSync syntax to read files.
var  file = fs.readFileSync('test.js');

License

MIT