https://github.com/eddyerburgh/codemods
https://github.com/eddyerburgh/codemods
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eddyerburgh/codemods
- Owner: eddyerburgh
- License: mit
- Created: 2018-04-27T10:51:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-14T06:52:06.000Z (about 8 years ago)
- Last Synced: 2024-12-30T04:26:37.823Z (over 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codemods
This repository contains a collection of codemod scripts for use with [JSCodeshift](https://github.com/facebook/jscodeshift).
## Usage
Install jscodeshift:
```
yarn global add jscodeshift
```
Run the transform in a project.
Replace `` with the path to the script you're running.
Replace `path` with the path of the files to transform.
```
jscodeshift -t
```
## Scripts
### `remove-anonymous-default-export`
Replaces anonymous default exports using the filename. If the filename is index.js, it will use the parent directory as the filename.