Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codemod-js/codemod
codemod rewrites JavaScript and TypeScript using babel plugins.
https://github.com/codemod-js/codemod
babel codemod
Last synced: 3 months ago
JSON representation
codemod rewrites JavaScript and TypeScript using babel plugins.
- Host: GitHub
- URL: https://github.com/codemod-js/codemod
- Owner: codemod-js
- Created: 2017-03-28T03:04:02.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T23:27:08.000Z (8 months ago)
- Last Synced: 2024-04-14T10:55:57.691Z (7 months ago)
- Topics: babel, codemod
- Language: TypeScript
- Homepage:
- Size: 5.24 MB
- Stars: 411
- Watchers: 5
- Forks: 18
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# codemod
Code rewriting tools for automated refactors.
## Why Codemods?
Sometimes big changes to your source code are required, and making such changes by hand is dangerous. For example, codemods can:
- rename across a codebase safely
- upgrade your uses of outdated APIs
- perform complex automated refactors
- much more!Since codemods are typically just code themselves, you can write one to do whatever you want.
## Getting Started
Check out the docs for [@codemod/cli](packages/cli/README.md) for instructions on installing and using the `codemod` CLI tool.
## Repository Structure
This repository is a monorepo, or multi-package repository. See the READMEs for the packages here:
- [`@codemod/cli` README](packages/cli/README.md)
- [`@codemod/core` README](packages/core/README.md)
- [`@codemod/matchers` README](packages/matchers/README.md)
- [`@codemod/parser` README](packages/parser/README.md)## License
Copyright 2017 Brian Donovan
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.