1.0.3 • Published 4 years ago

create-fs-cache v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

create-fs-cache

Node.js Lib forked from viankakrisna/loader-fs-cache

Fork of https://github.com/viankakrisna/loader-fs-cache To resolve:

Usage Example

import createCache from 'loader-fs-cache';

const cache = createCache('eslint-loader');

const cacheLoader = (callback, cache, content) => {
  const cacheIdentifier = JSON.stringify({
    'create-fs-cache-example': "1.0.0",
  });

  cache(
    {
      directory: cache,
      identifier: cacheIdentifier,
      source: content,
    },
    (err, res) => {
      return callback(err, content);
    }
  );
};