https://github.com/sidhanshamil/lockfile-extract
π Extract package versions from `package-lock.json` without installing dependencies! β‘ Supports CLI, JSON, and CSV output. π
https://github.com/sidhanshamil/lockfile-extract
extractor pacakge package-lock-json package-versions python3
Last synced: 5 months ago
JSON representation
π Extract package versions from `package-lock.json` without installing dependencies! β‘ Supports CLI, JSON, and CSV output. π
- Host: GitHub
- URL: https://github.com/sidhanshamil/lockfile-extract
- Owner: sidhanshamil
- License: mit
- Created: 2025-02-25T17:29:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T18:17:32.000Z (over 1 year ago)
- Last Synced: 2025-06-08T22:19:13.163Z (about 1 year ago)
- Topics: extractor, pacakge, package-lock-json, package-versions, python3
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ππ Unlock Your `package-lock.json` with **lockfile-extract**
**`lockfile-extract` is a lightweight CLI tool that extracts all package versions from `package-lock.json`βwithout installing dependencies!**
Easily analyze your project's dependencies without running `npm list` or installing unnecessary packages.
## π Features
- β
**Instantly extract** package names & versions
- β
**Multiple output formats**: CLI, JSON, and CSV
- β
**Zero dependencies** requiredβno `npm install` needed
- β
**Fast & lightweight** for quick analysis
## π§ Installation
### Install from PyPI (Recommended)
```bash
pip install lockfile-extract
```
## β‘ Usage
### Extract package versions (CLI Output)
```bash
lockfile-extract package-lock.json
```
### β
Example Output
```nginx
express 4.17.1, axios 1.2.3, lodash 4.17.21, ...
```
### Save output to JSON or CSV
#### π Output as JSON file
```bash
lockfile-extract package-lock.json --format=json
```
π Creates output.json with package details in JSON format.
#### π Output as CSV file
```bash
lockfile-extract package-lock.json --format=csv
```
π Creates output.csv with package details in CSV format.