# Install code-complexity with npm

Measure the churn/complexity score. Higher values mean hotspots where refactorings should happen. Version 4.4.4 via npm; verified 2023-09-21.

## Install

```sh
sudo av install npm:code-complexity
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g code-complexity
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:code-complexity
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/code-complexity>
- **Version:** 4.4.4
- **Source summary:** Measure the churn/complexity score. Higher values mean hotspots where refactorings should happen.
- **Homepage:** <https://github.com/simonrenoult/code-complexity#readme>
- **Repository:** <https://github.com/simonrenoult/code-complexity>
- **Upstream docs:** <https://github.com/simonrenoult/code-complexity#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/code-complexity/-/code-complexity-4.4.4.tgz>
- **Issue tracker:** <https://github.com/simonrenoult/code-complexity/issues>
- **Published:** 2023-09-21T08:39:18.769Z
- **Last updated:** 2023-09-21T08:39:18.769Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- code-complexity (cli)
- code-complexity (alias)

## Dependencies

- @babel/core
- @babel/plugin-transform-typescript
- cli-table3
- commander
- debug
- escomplex
- esprima
- micromatch
- node-sloc

## Build dependencies

- @babel/preset-env
- @types/babel__core
- @types/chai
- @types/debug
- @types/micromatch
- @types/mocha
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- chai
- codecov
- eslint
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-node
- eslint-plugin-prettier
- eslint-plugin-promise
- mocha
- nyc
- prettier
- ts-node
- typescript

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.4.4
- Package-manager updated: 2023-09-21
- Local data: ok
- Upstream repository: https://github.com/simonrenoult/code-complexity
- 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 code-complexity. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Alpha: 5.0.0-alpha.1, Latest: 4.4.4
- **Version Count:** 34
- **Maintainers:** simonrenoult
- **Author:** Simon Renoult
- **Publisher:** simonrenoult
- **Integrity:** sha512-iT/kbZnWqG/BaJSprwc5PZlX8Jt1mJYRzOlD/RkEJDlieDnKkwBxpBKs4W8ZARVPy02W8AWZ97KZHkFyC0Q9rQ==
- **Shasum:** 1e871521ebceb0d532595a8940dbede12f234fb7
- **Unpacked Size:** 396,574
- **File Count:** 0
- **Created At:** 2018-03-24T13:35:29.958Z
- **Latest Published At:** 2023-09-21T08:39:18.769Z
- **Modified At:** 2025-08-21T22:49:53.100Z


## Related links

- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [shadcn](https://www.automicvault.com/pkg/npm/shadcn/) - Both packages touch the same language runtime or ecosystem. Shared terms: babel, commander, core, node, plugin-transform-typescript.
- [adminjs](https://www.automicvault.com/pkg/npm/adminjs/) - Both packages touch the same language runtime or ecosystem. Shared terms: babel, commander, core, node, transform.
- [laravel-mix](https://www.automicvault.com/pkg/npm/laravel-mix/) - Local package facts share a topical domain. Shared terms: babel, cli-table3, commander, core, table3.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
