Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itwillwork/ostap
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
https://github.com/itwillwork/ostap
bundle cli-app duplicate-detection frontend webpack
Last synced: about 2 months ago
JSON representation
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
- Host: GitHub
- URL: https://github.com/itwillwork/ostap
- Owner: itwillwork
- Created: 2019-03-22T20:04:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T21:15:15.000Z (over 4 years ago)
- Last Synced: 2024-05-16T17:04:14.249Z (7 months ago)
- Topics: bundle, cli-app, duplicate-detection, frontend, webpack
- Language: JavaScript
- Homepage:
- Size: 638 KB
- Stars: 115
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ostap
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
Advantages:
* faster than alternatives, since it doesn't require rebuilding the bundle (example, [duplicate-package-checker-webpack-plugin](https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin));
* uses only package.json;
* suggests optimal package versions; [see how](#for-suggests-optimal-package-versions)
* you can quickly see all the current versions of the same package that are used in the current bundle. [see how](#for-see-all-the-current-versions-of-the-same-package-that-are-used-in-the-current-bundle)
## Quick start
```
# create package.json if not exists
echo "{\"name\":\"demo-project\",\"version\":\"1.0.0\",\"dependencies\":{\"@nivo/bar\":\"0.54.0\",\"@nivo/core\":\"0.53.0\",\"@nivo/pie\":\"0.54.0\",\"@nivo/stream\":\"0.54.0\"}}" > ./package.jsonnpx ostap ./package.json -s
```## How to use
For example, you have `package.json`:
```
{
"name": "demo-project",
"version": "1.0.0",
"dependencies": {
"@nivo/bar": "0.54.0",
"@nivo/core": "0.53.0",
"@nivo/pie": "0.54.0",
"@nivo/stream": "0.54.0"
}
}
```
### For suggests optimal package versions```
ostap ./package.json
```### For see all the current versions of the same package that are used in the current bundle
```
ostap ./package.json -s
```### Installation
```
npm i -g ostap
```
### Options
```
Options:
-c, --use-cache Use cache
-d, --duplicates Show duplicates in source and optimal tree
-s, --source-tree-duplicates Show duplicates in source tree
-o, --optimal-tree-duplicates Show duplicates in optimal tree
-v, --version Display version number
-h, --help Display help
```
## Contributing
Got ideas on how to make this better? Open an issue!## License
MIT## Who is Ostap?
Ostap Bender is a fictional man who appeared in the novels The Twelve Chairs and The Little Golden Calf written by Soviet authors Ilya Ilf and Yevgeni Petrov. His description as "The Great Combinator" became a catch phrase in the Russian language.