JSPM

@storybook/csf-tools

7.6.21
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1346488
  • Score
    100M100P100Q196556F
  • License MIT

Parse and manipulate CSF and Storybook config files

Package Exports

  • @storybook/csf-tools
  • @storybook/csf-tools/package.json

Readme

Storybook CSF Tools

An experimental library to read, analyze, transform, and write CSF programmatically.

  • Read - Parse a CSF file with Babel
  • Analyze - Extract its metadata & stories based on the Babel AST
  • Write - Write the AST back to a file

It can can parse MDX into CSF.

Coming soon:

  • Transform - Update the AST to add/remove/modify stories & metadata (TODO)