@file-cache/package-lock
v2.0.0
Published
package lock file for @file-cache
Downloads
3
Readme
@file-cache/package-lock
Create cache key that is based on lock file like package-lock.json
.
Supported Lock Files
package-lock.json
yarn.lock
pnpm-lock.yaml
bun.lockb
Installation
npm install @file-cache/package-lock
Usage
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
packageDir
isprocess.cwd()
.
Tests
npm test
Contributing
- 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