NPM Tricks I Wish I Knew Sooner
A developer, geek, enthusiast, who loves to solve problems and fix things with technology.I am working on 💻frontend web development with Javascript and I love contributing to 🌟 open source.
Search for a command to run...
A developer, geek, enthusiast, who loves to solve problems and fix things with technology.I am working on 💻frontend web development with Javascript and I love contributing to 🌟 open source.
No comments yet. Be the first to comment.
Over the years I have picked up a lot of GitHub tricks, ways that I work around GitHub. I mostly use some set of commands and want to make a list of it & have it for reference. Setting Up SSH: I think anyone who is working with Git & GitHub should se...
The terminal is essential software for any developer or engineer. It is one of their daily drivers, so a terminal with better tools will not only save you time but also increase productivity. These are some key features that make Atuin stand out in y...

I have worked mostly in small & early-stage startups but got an opportunity to work at a large organization like Amazon. Listing down the different processes that are followed in both the organizations describing the development process & release pro...

2023 has been a rollercoaster ride for me. I faced a layoff early in the year from my last company, Hootboard, but bounced back and joined Amazon. Even though it is a contract role, it was the best decision I made. I traveled to the React Nexus confe...

Recently I have been working on migrating an old React application based on react-scripts to support Node.js 18. To make it work, I came across multiple npm tricks that helped solve these issues, so I am going to explain and document them in this blog.
npx depcheck
Analyzes the dependencies in a project to see how each dependency is used, which dependencies are unused, and which dependencies are missing from package.json.
npm why package_name
This command helps you understand why a package is installed in your project and where it comes from.
npm ls buffer
Prints all the versions of packages that are installed, as well as their dependencies.
npm find-dupes
Runs npm dedupe and outputs all the duplication changes without changing the package tree.
npm dedupe
Searches the local packages tree and attempts to simplify the overall structure by moving dependencies further up the tree, where they can be more effectively shared by multiple dependent packages.
npm ci
If you have already set up projects where you have node_modules and package-lock.json, using this command will remove them and perform a clean install.