0.1.0 • Published 8 years ago
repdeps v0.1.0
repdeps

Dependency transformer for madge. Replaces paths in JSON dependency structures.
Installation
$ npm -g install repdepsExamples: Piping madge output through repdeps
Convert 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