flatlock 1.6.0
The Matlock of lockfile parsers - extracts packages without building dependency graphs.
Binaries
| Binary | Description |
|---|---|
flatlock |
Extract packages from lockfiles |
flatcover |
Check package coverage against a registry |
Installation
Download the appropriate binary for your platform and add it to your PATH:
# Linux (x64)
curl -L -o flatlock https://github.com/indexzero/flatlock/releases/download/1.6.0/flatlock-linux-x64
curl -L -o flatcover https://github.com/indexzero/flatlock/releases/download/1.6.0/flatcover-linux-x64
chmod +x flatlock flatcover
mv flatlock flatcover /usr/local/bin/
# Linux (ARM64)
curl -L -o flatlock https://github.com/indexzero/flatlock/releases/download/1.6.0/flatlock-linux-arm64
curl -L -o flatcover https://github.com/indexzero/flatlock/releases/download/1.6.0/flatcover-linux-arm64
chmod +x flatlock flatcover
mv flatlock flatcover /usr/local/bin/
# macOS (Apple Silicon)
curl -L -o flatlock https://github.com/indexzero/flatlock/releases/download/1.6.0/flatlock-darwin-arm64
curl -L -o flatcover https://github.com/indexzero/flatlock/releases/download/1.6.0/flatcover-darwin-arm64
chmod +x flatlock flatcover
mv flatlock flatcover /usr/local/bin/Usage
# Extract packages from lockfile
flatlock package-lock.json
flatlock pnpm-lock.yaml --specs --json
# Check coverage against a registry
flatcover pnpm-lock.yaml --cover --summary
flatcover pnpm-lock.yaml --cover --registry https://npm.pkg.github.com --token ghp_xxxSee the README for full documentation.
What's Changed
- fix(release) remove v prefix from release tags by @indexzero in #19
- feat(npm) add lockfileVersion 1 support via fromDependenciesTree by @indexzero in #20
- feat(release) automate releases with release-it by @indexzero in #21
- nit(release) document release process and remove broken release script by @indexzero in #22
- fix(release) skip npm auth pre-check for OIDC trusted publishing by @indexzero in #23
- fix(release) use Node 24 and empty NODE_AUTH_TOKEN for OIDC publishing by @indexzero in #24
- chore: release 1.6.0 by @indexzero in #26
Full Changelog: 1.5.1...1.6.0