# Install knip with npm

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects. Version 6.16.1 via npm; verified 2026-06-16.

## Install

```sh
sudo av install npm:knip
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g knip
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:knip
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/knip>
- **Version:** 6.16.1
- **Source summary:** Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
- **Homepage:** <https://knip.dev>
- **Repository:** <https://github.com/webpro-nl/knip>
- **Upstream docs:** <https://knip.dev>
- **License:** ISC
- **Source archive:** <https://registry.npmjs.org/knip/-/knip-6.16.1.tgz>
- **Issue tracker:** <https://github.com/webpro-nl/knip/issues>
- **Published:** 2026-06-06T17:52:39.499Z
- **Last updated:** 2026-06-16T06:18:07.787Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- knip (cli)
- knip-bun (cli)
- knip (alias)

## Dependencies

- fdir
- formatly
- get-tsconfig
- jiti
- oxc-parser
- oxc-resolver
- picomatch
- smol-toml
- strip-json-comments
- tinyglobby
- unbash
- yaml
- zod

## Build dependencies

- @jest/types
- @types/bun
- @types/picomatch
- @types/webpack
- @typescript/native-preview
- codeclimate-types
- prettier
- tsx

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.16.1
- Package-manager updated: 2026-06-16
- Local data: ok
- Upstream repository: https://github.com/webpro-nl/knip
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 6.16.1
- **Version Count:** 596
- **Maintainers:** webpro
- **Author:** Lars Kappert
- **Publisher:** webpro
- **Engines:** Node: ^20.19.0 || >=22.12.0
- **Integrity:** sha512-TKMn1rxgH6h9vXR9Y0B+Cq7AdPTr9EI02IwoT65NzqYUkvoDQAaJ/aPybiFpAhZ1px6cNYYwXf86iHkBgzCo9w==
- **Shasum:** ca3c83a46d7a8770a0debce14ba23240c572a02c
- **Unpacked Size:** 1,662,750
- **File Count:** 0
- **Created At:** 2022-10-09T21:04:12.963Z
- **Latest Published At:** 2026-06-06T17:52:39.499Z
- **Modified At:** 2026-06-06T17:52:39.611Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [npm-groovy-lint](https://www.automicvault.com/pkg/npm/npm-groovy-lint/) - Both packages work with overlapping file formats or content types. Shared terms: cli, comments, developer, developer-tools, files.
- [xo](https://www.automicvault.com/pkg/npm/xo/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, find.
- [fallow](https://www.automicvault.com/pkg/npm/fallow/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, code, code-quality, dependencies.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
