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

@storybook/codemod

Package Overview
Dependencies
Maintainers
12
Versions
2006
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/codemod

A collection of codemod scripts written with JSCodeshift

  • 8.4.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9M
increased by1.37%
Maintainers
12
Weekly downloads
 
Created

What is @storybook/codemod?

The @storybook/codemod package is a collection of codemod scripts that help developers automate the process of making code changes and migrations in projects using Storybook. These scripts are particularly useful for upgrading between major versions of Storybook by automatically adjusting the code to fit new APIs and practices.

What are @storybook/codemod's main functionalities?

Transform Storybook configuration

This feature allows you to automatically transform and update your Storybook configuration files to adhere to new organizational standards or API changes in newer versions of Storybook.

npx @storybook/codemod@latest update-organisation --glob=".storybook/*.js"

Migrate stories to Component Story Format (CSF)

Converts stories written in the older 'storiesOf' format to the newer Component Story Format (CSF), which is more modular and easier to maintain.

npx @storybook/codemod@latest storiesof-to-csf --glob="src/**/*.stories.js"

Rename deprecated addParameters to use args

This script updates the deprecated 'addParameters' method calls in your stories to the new 'args' format, helping you to keep your codebase up to date with the latest Storybook practices.

npx @storybook/codemod@latest add-parameters-to-args --glob="src/**/*.stories.js"

Other packages similar to @storybook/codemod

Keywords

FAQs

Package last updated on 29 Nov 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