@putout/cli-cache

5.0.1 • Public • Published

@putout/cli-cache NPM version

Store to cache information about files processed by 🐊Putout to nearest node_modules/.cache directory.

Install

npm i @putout/cli-cache

Example

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();

License

MIT

Package Sidebar

Install

npm i @putout/cli-cache

Weekly Downloads

4,561

Version

5.0.1

License

MIT

Unpacked Size

10.7 kB

Total Files

10

Last publish

Collaborators

  • coderaiser