Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fallow) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fallow
Find dead code in JavaScript and TypeScript projects. Written in Rust.
Fallow detects unused files, exports, dependencies, types, enum members, and class members across your codebase. It is a drop-in alternative to knip that runs 25-50x faster on real-world projects by using the Oxc parser instead of the TypeScript compiler.
Installation
npm install -g fallowUsage
# Analyze your project
fallow check
# Watch mode
fallow watch
# Auto-fix unused exports and dependencies
fallow fix --dry-run
fallow fix
# JSON output for CI
fallow check --format jsonWhat it finds
- Unused files - files not imported anywhere
- Unused exports - exported symbols nobody imports
- Unused types - exported type aliases and interfaces
- Unused dependencies - packages in package.json not imported
- Unused devDependencies - dev packages not referenced
- Unused enum members - enum variants never accessed
- Unused class members - methods/properties never used
- Unresolved imports - imports that don't resolve to a file
- Unlisted dependencies - imported packages not in package.json
- Duplicate exports - same symbol exported from multiple files
Framework support
Auto-detects and configures entry points for: Next.js, Vite, Vitest, Jest, Storybook, Remix, Astro, Nuxt, Angular, Playwright, Prisma, ESLint, TypeScript, Webpack, Tailwind, GraphQL Codegen, React Router.
Configuration
Create a fallow.toml in your project root:
[entry]
patterns = ["src/index.ts", "src/main.ts"]
[ignore]
files = ["**/*.test.ts", "**/*.spec.ts"]
exports = ["src/public-api.ts"]
dependencies = ["@types/*"]Or generate one: fallow init
Documentation
Full documentation at github.com/bartwaardenburg/fallow.
License
MIT