The Tech Meta

An inside look at tech's evolving playbook

Unused-code check (Knip)

Test observed

A tool that finds files, exports and dependencies nothing uses any more, so dead code gets removed.

Knip is a tool for JavaScript and TypeScript projects that finds what nothing uses any more: files, exports, types, and dependencies listed in package.json but never imported. Teams run it in CI, in a git hook or by hand before a release, so that dead code and unused packages get removed rather than pile up. It reads the project's entry points and follows the imports from there. The site counts a repo when it holds a Knip config file, or lists knip in its root package.json.

  • Pro scene today: 12%, 27 of 221 pro repos
  • In three months: +1 pt (4 pro repos added it, 1 removed it)
  • Kept: 96%, 23 of 24 that had it 3 months ago or before

Pro 12% · Ladder 3%

In the pro repos

The 6 most starred of the 27 pro repos that have it today.

By month

MonthPro scene
June 20253%
July 20254%
August 20254%
September 20254%
October 20255%
November 20255%
December 20256%
January 20266%
February 20266%
March 20266%
April 20269%
May 20269%
June 202610%
July 202610%
August 202611%
September 202611%
October 202613%
November 202612%
today12%

Evidence

Observed in the repos only: no published study is quoted for it yet.

How it is detected

Looks for a Knip config, or knip in the root package.json. Read in repo files. How the method counts

Related practices

More in Test, the most adopted first.

Levels of evidence