Dependency transformer for madge. Replaces paths in JSON dependency structures.
$ npm -g install 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