Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vibe/codemod

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vibe/codemod

Vibe's component library migration tool

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-69.35%
Maintainers
0
Weekly downloads
 
Created
Source

@vibe/codemod

The @vibe/codemod package is designed to automate the migration to the latest version of the Vibe design system. It applies specific transformations to your codebase based on the migration type you choose. The tool can be run interactively or via command-line arguments.

Usage

To run, use the following command:

npx @vibe/codemod [options]

Options

--migration (alias: -m)

  • Description: Specifies which migration type to run (e.g., v3).

  • Choices: v3

  • Required: Yes

  • Example:

    npx @vibe/codemod --migration v3
    

--target (alias: -t)

  • Description: Specifies the target directory where the transformations will be applied.

  • Default: Current working directory (process.cwd())

  • Required: No (defaults to the current working directory if not provided)

  • Example:

    npx @vibe/codemod --target /path/to/your/project
    

--extensions (alias: -x)

  • Description: Specifies which file extensions to include for the migration.

  • Choices: jsx, tsx, js, ts

  • Required: Yes

  • Example:

    npx @vibe/codemod --extensions jsx tsx
    

[!WARNING] Running the migration with all available extension options can possibly slow down the process. It is recommended to run the migration with only the necessary options.

--verbose (alias: -v)

  • Description: Enables verbose mode. When enabled, detailed logs of the transformation process will be printed.

  • Default: false

  • Example:

    npx @vibe/codemod --verbose
    

Included Migrations

The following migrations are included in this CLI:

v3 Migration

  • Migration Type: v3 (--migration v3)
  • Description: This migration transforms components and files to comply with version 3 of @vibe/code.

FAQs

Package last updated on 11 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc