dup-checker
A simple Node.js library to find and fix duplicate variables and functions in JavaScript/TypeScript React components. Perfect for refactoring and cleaning up code!
Github Repository
https://github.com/susylPearl/dup-checker
Features
- Scans
.js,
.ts,
.jsx, and
.tsx files for duplicate variables and functions.
- Detects duplicates even in destructured variables from
useState and other hooks.
- Offers a command-line interface (CLI) for easy usage.
- Helps in refactoring and cleaning up your React codebase.
Installation
You can install
dup-checker globally or as a dev dependency.
$3
```bash
npm install -g dup-checker