https://github.com/codemod-com/commons
A catch-all repo for some community-driven codemods.
https://github.com/codemod-com/commons
Last synced: 7 months ago
JSON representation
A catch-all repo for some community-driven codemods.
- Host: GitHub
- URL: https://github.com/codemod-com/commons
- Owner: codemod-com
- License: other
- Created: 2024-12-05T20:05:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T21:59:44.000Z (over 1 year ago)
- Last Synced: 2024-12-13T22:29:49.880Z (over 1 year ago)
- Language: TypeScript
- Size: 1.97 MB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
- Changelog: history/4/replace-state-object/.codemodrc.json
Awesome Lists containing this project
README
# Codemod Commons
Codemods, public or private, are preferred to reside in repositories owned by the main organization of their respective projects.
This repository serves as a catch-all for some codemod sources that still have not found thier way to their ideal home or for Codemod-compatible forks of existing codemods for easier publishing.
Please [chat with us](https://go.codemod.com/community) before making any major contribution.
## Usage
> [!CAUTION]
> These scripts change source code. Commit any unsaved changes before running them. Failing to do so may ruin your day.
To run the transform scripts use [`codemod`](https://go.codemod.com/github) command below:
```console
$ npx codemod --target [...options]
```
- `transform` - name of transform. see available transforms below.
- `path` - directory to transform. defaults to the current directory.
See the [codemod CLI doc](https://go.codemod.com/cli-docs) for a full list of available commands.
All codemods are also available in the [Codemod Registry](https://go.codemod.com/registry).