An open API service indexing awesome lists of open source software.

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. πŸš€

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.