@fiahfy/storiesof2csf
v0.0.5
Published
CLI to convert old-style storiesOf stories into Component Story Format (CSF)
Downloads
1
Readme
storiesof2csf
CLI to convert old-style storiesOf stories into Component Story Format (CSF).
This package extendsstoriesof-to-csf
transform to support dynamic story titles and story files written in TypeScript or Flow.
Installation
npm install @fiahfy/storiesof2csf
Usage
import { convert } from '@fiahfy/storiesof2csf'
convert(code, { parser: 'babel' })
CLI
npm install -g @fiahfy/storiesof2csf
storiesof2csf Button.stories.js
or use via npx
npx @fiahfy/storiesof2csf Button.stories.js