Skip to content

Dependency transformer for madge. Replaces paths in JSON dependency structures.

License

Notifications You must be signed in to change notification settings

joebowbeer/repdeps

Repository files navigation

repdeps Coverage

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

About

Dependency transformer for madge. Replaces paths in JSON dependency structures.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published