0.7.3 • Published 3 months ago

intuita v0.7.3

Weekly downloads
-
License
Apache License, V...
Repository
github
Last release
3 months ago

Intuita's Codemod Engine Node

Intuita gives you multiple ways to discover, run & share supported codemods and code automation recipes.

Running Intuita CLI

Installation

npm i intuita

Global installation (recommended)

npm i -g intuita

Usage

Running a codemod

intuita [framework/version/codemod-name]

Example (running Next.js app router receipe codemod)

intuita next/13/app-router-recipe

List available codemods

The list command can be used to list all codemods available in the Codemod Registry.

intuita list

Sync registry

The syncRegistry command can be used to sync local codemods with the public Codemod Registry.

intuita syncRegistry

Generate codemod from file diff

The learn command can be used to send the diff of the latest edited file to the Codemod Studio and have it automatically build an explainable and debuggable codemod.

After running this command, if any git diff exists, Intuita will use the diff as before/after snippets in the Codemod Studio.

intuita learn

Options

Contribution

We'd love for you to contribute to the Codemod Engine and the Codemod Registry. Please note that once you create a pull request, you will be asked to sign our Contributor License Agreement.

We're always excited to support codemods for more frameworks and libraries. Contributing allows us to make codemods more accessible to more framework builders, developers, and more.

Telemetry 🔭

We collect anonymous usage data to improve our product. Collected data cannot be linked to individual users. We do not store personal data/code.

For more details and samples of collected data see our telemetry compliance considerations doc.