PressJump / qnpm

Quick Node Package Manager. A Node Package Manager written in Rust, made for but not yet achieved speed.
MIT License
0 stars 0 forks source link

Add "remove" Command #5

Open PressJump opened 10 months ago

PressJump commented 10 months ago

Addition of the "remove" command to remove packages.

PressJump commented 10 months ago

Currently using the command "remove" to remove a package does the following checks.

  1. Check for the package in package-lock.json. (In case found return PackageStatus)
  2. Check for the package in package.json. (In case found return PackageStatus)
  3. Check for the package in local node_modules directory in case it was either (manually installed [not recommended] or it was not added to the config/malformed json (unable to parse)).

These checks only run one after another if they fail. This makes sure that all the basis are covered even in the case the package is locally available.