repdeps
v1.0.2
Published
Dependency transformer for madge. Replaces paths in JSON dependency structures.
Downloads
3,436
Maintainers
Readme
repdeps
Dependency transformer for madge. Replaces paths in JSON dependency structures.
Installation
$ npm -g install repdeps
Examples: Piping madge output through repdeps
Convert all path/...
dependencies to other
.
$ madge --json app.js | repdeps -p 'path' -r 'other' | madge --stdin
Convert all path/...
dependencies to path
. (Replacement defaults to parent.)
$ madge --json app.js | repdeps -p 'path' | madge --stdin
Replace all multipart paths with their first component.
$ madge --json app.js | repdeps -x '([^\/]*).*' -r '$1' | madge --stdin