NodeJS
Understanding the Event Loop: How Node.js Executes Asynchronous Callbacks
January 04, 2023
5 min
Like on a *nix system, ls
is short for the list, and that’s what it does: lists the installed modules.
To find out what modules are installed in your project, you can issue this command:
npm ls
ls
command will also list the dependencies of packages installed by the project.
To list global packages add the flag -g
before ls
command
npm -g ls
This will display the packages installed in the global cache.
To display only top-level packages, you can add the flag --depth=0
to ls
command
npm ls --depth=0