Prints the full NodeJS package dependency tree based on a given package name.
- About
- Installation
- Usage
- License
About
Developers working with NodeJS use packages in their code. A package is a functional NodeJS module that includes versioning, documentation, dependencies (in the form of other packages), and more. NodeJS has a managed packages environment called npm. npm is regularly updated with new packages and new versions of existing packages. The user provides the name of the package for analysis. The tool fetches the overall set of dependencies from the relevant package manager, for the given package.
Installation
The tool is designed to work on macOS, GNU/Linux, Windows, Unix-like OS. It is packaged as a Gem and require Ruby version 2.6 or later. See “Installing Ruby” if you don't have the proper version on your platform.
Use this command to install:
gem install pls
Updating
Use this command to update the package:
gem update pls
Usage
pls [options]
-p, --pac package Package name.
-v, --version Shows version.
Example
pls -p express
License
Pls is copyright David Rabkin and available under a Zero-Clause BSD license.