$ npm install @putout/cli-cache
Create cache of places found by 🐊Putout to places.json.
npm i @putout/cli-cache
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();
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE