Skip to content

lwensveen/typescript-dry

Repository files navigation

🧠 typescript-dry

CI npm downloads size codecov docs license

A tool to detect duplicate or near-duplicate TypeScript type/interface definitions in your codebase.

Installation

Install typescript-dry via npm:

npm install -g typescript-dry

Usage

Scan your repository for exact duplicate type/interface definitions:

npx typescript-dry .

Detect near-duplicate definitions with a similarity threshold (e.g., 85%):

npx typescript-dry . -t 0.85

Features

  • Exact Duplicate Detection: Identifies identical TypeScript type and interface definitions.
  • Fuzzy Matching: Finds near-duplicate definitions with a configurable similarity threshold.
  • Lightweight: Seamlessly integrates into your TypeScript development workflow.

License

MIT License

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Support

If you encounter issues or have questions, file an issue on the GitHub repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •