fcache

0.3.0 • Public • Published

fcache

Standartized fs.readfile caching mechanism for incremental build systems.

Usage

// Your watcher
const fcache = require('fcache');
watcher.on('change', path => {
  fcache.updateCache(path).then(data => {
    // Do some stuff.
  });
});
 
// Later, in your plugin
fcache.readFile(path).then(data => {
  // Would use cached version.
});
 

Supported Node.js versions

fcache Node.js
~0.1 > 0.8
~0.2 > 4.0

License

The MIT License (c) 2016 Paul Miller (http://paulmillr.com)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    4,374
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    4,374
  • 0.2.0
    7
  • 0.1.1
    648
  • 0.1.0
    0

Package Sidebar

Install

npm i fcache

Weekly Downloads

5,029

Version

0.3.0

License

MIT

Last publish

Collaborators

  • paulmillr
  • es128