yarn-duplicate icon indicating copy to clipboard operation
yarn-duplicate copied to clipboard

A small tool to help you check package duplicates in `yarn.lock`

Yarn Duplicate

A small tool to help you check duplicate package and package size in yarn.lock.

Usage

  1. Change to your project root folder, which have a yarn.lock file.
  2. npx yarn-duplicate

That's all!

PS: If you don't have npx installed, use:

npm install -g yarn-duplicate
yarn-duplicate

Caveats

Only support Yarn V1.x right now.

Showcase

Run duplicate check under redux source code duplicate package example

Meaning of columns:

  • name: name of the npm package
  • duplicates: times of the package duplicates
  • sizeInBrowser-KB: package size in bowser by KB.

If there're no duplicate packages, the result would be: image