Dependency transformer for madge. Replaces paths in JSON dependency structures.
$ npm -g install repdepsConvert all path/... dependencies to other.
$ madge --json app.js | repdeps -p 'path' -r 'other' | madge --stdinConvert all path/... dependencies to path. (Replacement defaults to parent.)
$ madge --json app.js | repdeps -p 'path' | madge --stdinReplace all multipart paths with their first component.
$ madge --json app.js | repdeps -x '([^\/]*).*' -r '$1' | madge --stdin