knip

v2.13.0-next-webpack.0
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 scripts src tests

test

glob -c "node --no-warnings --loader tsx --test" "tests/**/*.test.ts"

build

tsc

watch

tsc --watch

format

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

release

release-it

coverage

c8 npm test

docs:cli

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

lint:fix

eslint scripts src tests --fix

prebuild

node -e "require('fs').rmSync('dist', { force: true, recursive: true })"

docs:format

remark README.md docs/*.md .github/*.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

postcreate-plugin

prettier schema.json src/configuration-validator.ts --write --config .prettierrc --loglevel silent

Metadata

  • ISC
  • >=16.17.0 <17 || >=18.6.0
  • Lars Kappert
  • released 5/25/2023

Downloads

Maintainers