Pick out and massage parameters.
Do you want to:
- Get nearest package path?
- Get root package path?
usage
enpm-rev-parse --package
# get nearest package path
enpm-rev-parse --root-package
# get root package path
With extra-npm try
enpm rev-parse
instead.
reference
enpm-rev-parse <parameter> [args] [options]
# parameter: name of parameter to get
## --package, --top-package
# args: arguments for parameter
# -> value of parameter
# -> -1 otherwise (error)
# Options:
# --help: view this help
# --silent: enable showing only -1 on error (0)
# Environment variables:
$ENPM_SILENT # enable showing only -1 on error (0)
similar
Do you need anything similar?
- enpm-search can search for NPM packages.
- enpm-validate can validate package fields.
Suggestions are welcome. Please create an issue.
References: pkg-dir.