3.0.1 • Published 4 months ago

@putout/cli-cache v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@putout/cli-cache NPM version

Create cache of places found by 🐊Putout.

Install

npm i @putout/cli-cache

Example

const {createCache} = require('@putout/cli-cache');

const fileCache = await createCache({
    version,
    cache,
    fresh,
});

const places = fileCache.getPlaces(name);

fileCache.canUseCache(name, options);
fileCache.removeEntry(name);
fileCache.setInfo(name, places, options);
fileCache.reconcile();

License

MIT