Npm Guide

ยท

1 min read

Did you know, you can find unused packages in your codebase with the help of a package named: ๐—ป๐—ฝ๐—บ-๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ.

1. Install the ๐—ป๐—ฝ๐—บ-๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ package (via yarn or npm)
2. Open package.json file and add below line in scripts:
"๐‘›๐‘๐‘š-๐‘โ„Ž๐‘’๐‘๐‘˜": "๐‘›๐‘๐‘š-๐‘โ„Ž๐‘’๐‘๐‘˜"
3. Open terminal, go to your project's path and run:
๐‘›๐‘๐‘š ๐‘Ÿ๐‘ข๐‘› ๐‘›๐‘๐‘š-๐‘โ„Ž๐‘’๐‘๐‘˜
4. You will get a list of unused, outdated packages with detailed description.

Here is the link for the package: npmjs.com/package/npm-check

ย