Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 893 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 893 Bytes

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 command below:

$ npx codemod <transform> --target <path> [...options]
  • transform - name of transform. see available transforms below.
  • path - directory to transform. defaults to the current directory.

See the codemod CLI doc for a full list of available commands.

Available codemods

All Node.js codemods are also available in the Codemod Registry.