Styledictionary/4/Format Helpers

1.0.3Last update Sep 9, 2024
by@35c4n0r

What Changed

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

Before

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

After

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

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now