# Install madge with npm

Create graphs from module dependencies. Version 8.0.0 via npm; verified 2024-08-05.

## Install

```sh
sudo av install npm:madge
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g madge
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:madge
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/madge>
- **Version:** 8.0.0
- **Source summary:** Create graphs from module dependencies.
- **Homepage:** <https://github.com/pahen/madge>
- **Repository:** <https://github.com/pahen/madge>
- **Upstream docs:** <https://github.com/pahen/madge>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/madge/-/madge-8.0.0.tgz>
- **Issue tracker:** <https://github.com/pahen/madge/issues>
- **Published:** 2024-08-05T07:49:35.718Z
- **Last updated:** 2024-08-05T07:49:35.718Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- madge (cli)
- madge (alias)

## Dependencies

- chalk
- commander
- commondir
- debug
- dependency-tree
- ora
- pluralize
- pretty-ms
- rc
- stream-to-array
- ts-graphviz
- walkdir

## Build dependencies

- @aptoma/eslint-config
- auto-changelog
- eslint
- mocha
- mz
- release-it
- should
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 8.0.0
- Package-manager updated: 2024-08-05
- Local data: ok
- Upstream repository: https://github.com/pahen/madge
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for madge. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 8.0.0
- **Version Count:** 77
- **Maintainers:** pahen, kamiazya
- **Author:** Patrik Henningsson
- **Publisher:** pahen
- **Engines:** Node: >=18
- **Peer Dependencies:** typescript
- **Funding:** <https://www.paypal.me/pahen>
- **Integrity:** sha512-9sSsi3TBPhmkTCIpVQF0SPiChj1L7Rq9kU2KDG1o6v2XH9cCw086MopjVCD+vuoL5v8S77DTbVopTO8OUiQpIw==
- **Shasum:** cca4ab66fb388e7b6bf43c1f78dcaab3cad30f50
- **Unpacked Size:** 105,058
- **File Count:** 0
- **Created At:** 2012-05-20T11:32:03.832Z
- **Latest Published At:** 2024-08-05T07:49:35.718Z
- **Modified At:** 2024-08-05T07:49:35.895Z


## Related links

- [Package ecosystem packages](https://pkg.so/package-ecosystem-tools/) - Matched curated package taxonomy and local package facts.
- [dependency-tree](https://pkg.so/npm/dependency-tree/) - Local package facts share a topical domain. Shared terms: amd, analysis, cli, commander, dependencies.
- [module-deps](https://pkg.so/npm/module-deps/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, code-analysis, dependencies.
- [module-deps-sortable](https://pkg.so/npm/module-deps-sortable/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, code-analysis, dependencies.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
