https://github.com/nodejs/userland-migrations
Facilitate automated migrations of userland code
https://github.com/nodejs/userland-migrations
Last synced: about 1 year ago
JSON representation
Facilitate automated migrations of userland code
- Host: GitHub
- URL: https://github.com/nodejs/userland-migrations
- Owner: nodejs
- Created: 2024-11-15T22:20:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-21T00:08:43.000Z (over 1 year ago)
- Last Synced: 2024-11-21T01:18:37.079Z (over 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js userland migrations
This repository contains codemods (automated migrations) for "userland" code. These are intended to facilitate adopting new features and upgrading source-code affected by breaking changes.
## 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.
## Available codemods
All Node.js codemods are also available in the [Codemod Registry](https://codemod.link/nodejs-official).