mirror of https://gitee.com/openkylin/npm.git
73846cac3f | ||
---|---|---|
.. | ||
benchmark | ||
.gitignore | ||
README.md | ||
benchmark.js |
README.md
Arborist Scripts
These are handy little test scripts to use while debugging and poking around.
They're untested (or, in some sense, some of them are tests, albeit ad hoc ones for use when figuring out what a thing should even be), and really moroe like spikes or examples than anything dependable or useful.
At some point it would be good to gather up some of this and turn it into a
proper arb
executable.
actual.js
- Load the metadata about the modules on disk, and print it out nicely. First argument is the path to load, defaults tocwd
.virtual.js
- Load the metadata fromnpm-shrinkwrap.json
,package-lock.json
, and/oryarn-lock.json
, and print it out nicely. First argument is the path to load, defaults tocwd
.ideal.js
- Build the ideal tree frompackage.json
and/or shrinkwrap and lockfile metadata. First argument is the path to load, defaults tocwd
. You may also specify the following options:--quiet
- Do not print the result,--prefer-dedupe
- Prefer to deduplicate the tree rather than get the latest versions of dependencies.--add=<pkgname>[@<specifier>]
- Add the specified package to the rootdependencies
object.--rm=<pkgname>
- Remove the specified package from the root dependencies, devDependencies, optionalDependencies, and/or peerDependencies, if found in any of those locations.
license.js
- Scan the tree for license information and print it out. First argument is the path to look in, defaults to cwd.funding.js
- Scan the tree for funding information and print it out. First argument is the path to look in, defaults to cwd.