-
Notifications
You must be signed in to change notification settings - Fork 0
rev parse
Subhajit Sahu edited this page Apr 24, 2021
·
5 revisions
Picks out and massages parameters.
- Gets nearest package path.
- Gets root package path.
enpm rev-parse <parameter> [args] [options]
# parameter: name of parameter to get
## --package, --root-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:
$NPM_SILENT # enable showing only -1 on error (0)
$ enpm rev-parse --package
# get nearest package path
$ enpm rev-parse --root-package
# get root package path