Socket
Socket
Sign inDemoInstall

fcache

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fcache

Standartized fs.readFile caching mechanism for incremental build systems.


Version published
Maintainers
2
Install size
2.42 kB
Created

Readme

Source

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)

FAQs

Last updated on 02 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc