An open API service indexing awesome lists of open source software.

https://github.com/eddyerburgh/codemods


https://github.com/eddyerburgh/codemods

Last synced: 6 months ago
JSON representation

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.