npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fcache

0.3.0

@paulmillr

npmHomeRepoSnykSocket
Downloads:516
$ npm install fcache
DailyWeeklyMonthlyYearly

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

fcacheNode.js
~0.1> 0.8
~0.2> 4.0

License

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