Socket
Socket
Sign inDemoInstall

codemod

Package Overview
Dependencies
40
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    codemod

A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)


Version published
Weekly downloads
357
decreased by-6.54%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Codemod


GitHub · Documentation . Community

The Codemod platform helps you create, distribute, and deploy codemods in codebases of any size.

The AI-powered, community-led codemods enable you to automate framework upgrades, large refactoring, and boilerplate programming with unparalleled speed and developer experience.

npm i -g codemod

Usage & Documentation

For details on how to use the Codemod platform, check out our documentation.

Quickstart

List available codemods

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

codemod list

Running a codemod

codemod [codemod-name]
Example:
codemod next/13/app-router-recipe

Create codemod with AI

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.

codemod learn

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

Community

The Codemod community can be found on Slack, where you can ask questions, share your feedback, and contribute to the community.

Our Code of Conduct applies to all Codemod community channels.

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.

Keywords

FAQs

Last updated on 01 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc