Registry
3

styledictionary/4/format-helpers

No description available

35c4n0r10,490 executions

  • Legacy
  • styledictionary
  • 4
  • migration
Connect a repo
npx codemod styledictionary/4/format-helpers

What Changed

This codemod relocates the format helpers from the StyleDictionary module/class to the utils entrypoint, ensuring consistency across the API.

Before

jsx
import StyleDictionary from 'style-dictionary';
const { fileHeader, formattedVariables } = StyleDictionary.formatHelpers;

After

jsx
import StyleDictionary from 'style-dictionary';
import { fileHeader, formattedVariables } from 'style-dictionary/utils';

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.