knip

v2.19.9
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

node --no-warnings --test tmp

build

tsc

watch

tsc --watch

format

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

pretest

node rmdir.js tmp && swc src -d tmp/src && swc tests -d tmp/tests

release

release-it

coverage

c8 --reporter html node --no-warnings --loader tsx --test tests/*.test.ts tests/*/*.test.ts

docs:cli

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

lint:fix

eslint scripts src tests --fix

prebuild

node rmdir.js dist

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 --no-warnings ./scripts/create-new-plugin.ts

knip:production

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

postcreate-plugin

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

Metadata

  • ISC
  • >=16.17.0 <17 || >=18.6.0
  • Lars Kappert
  • released 8/22/2023

Downloads

Maintainers