Store to cache
information about files processed by 🐊Putout to nearest node_modules/.cache
directory.
npm i @putout/cli-cache
import {createCache} from '@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