knip

v2.0.0-alpha.8
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
find detect analyze scan lint unused unreferenced unresolved missing and 18 more...

qa

npm run lint && npm run build && npm run knip && npm run knip:production && npm test

docs

npm run docs:cli && npm run docs:plugins && npm run docs:format

knip

node ./dist/cli.js

lint

eslint src tests --ignore

test

globstar -- node --loader tsx --test "tests/**/*.test.ts"

build

tsc

watch

tsc --watch

format

prettier scripts src tests --with-node-modules --write --config .prettierrc

release

release-it

docs:cli

tsx ./scripts/update-cli-usage-in-readme.ts

lint:fix

eslint src tests --fix

_prebuild

rm -rf dist

docs:format

remark README.md docs/*.md src/plugins/*/README.md -o

docs:plugins

tsx ./scripts/generate-plugin-docs.ts

create-plugin

tsx ./scripts/create-new-plugin.ts

knip:production

node ./dist/cli.js --production --strict

Metadata

  • ISC
  • >=16.17.0 <17 || >=18.6.0
  • Lars Kappert
  • released 3/14/2023

Downloads

Maintainers