Sweepy is a TypeScript CLI for safely refactoring React components and their usages.
Install Node.js 22 or newer, then install Sweepy directly from a GitHub Release:
pnpm add --global https://github.com/bezbac/sweepy/releases/download/v0.1.0/sweepy-0.1.0.tgzFor local development:
pnpm install
pnpm build
pnpm add -g "file:$PWD"materialize-propderives a strict prop type from static usages.replace-prop-valuereplaces one static prop value with another.lift-prop-valuemoves a static prop value to a wrapper.narrow-propslimits component props to the keys in use.
Run sweepy --help or sweepy <command> --help for available options. Changes require confirmation by default; use --dry-run to preview them or --yes to apply them without confirmation.
See CONTRIBUTING.md for project conventions.
This project was developed using AI-assisted coding tools to accelerate implementation, refactoring, testing, and documentation.
All code was reviewed, modified where appropriate, tested, and accepted by the project maintainers. Responsibility for the design, correctness, security, and licensing of this repository remains with the human authors.
This project's logo contains a stylized depiction of the React logo.
The React logo is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) license, as described in the React documentation repository: https://github.com/reactjs/reactjs.org/blob/master/LICENSE-DOCS.md
React is a trademark of Meta Platforms, Inc. This project is not affiliated with, endorsed by, or sponsored by Meta or the React project.