@file-cache/package-lock
v2.0.0
Published
package lock file for @file-cache
Readme
@file-cache/package-lock
Create cache key that is based on lock file like package-lock.json.
Supported Lock Files
package-lock.jsonyarn.lockpnpm-lock.yamlbun.lockb
Installation
npm install @file-cache/package-lockUsage
import { createPackageLockKey } from '@file-cache/npm';
const hash = createPackageLockKey(); // "package-lock.json__<hash>" API
createPackageLockKey(packageDir): string
Create cache key that is based on lock file like package-lock.json.
Search lock file from rootDir.
- Default
packageDirisprocess.cwd().
Tests
npm testContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT
