@storybook/csf-tools
TypeScript icon, indicating that this package has built-in type declarations

8.1.4 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i @storybook/csf-tools

Weekly Downloads

5,375,987

Version

8.1.4

License

MIT

Unpacked Size

46.3 kB

Total Files

4

Last publish

Collaborators

  • domyen
  • kasperpeulen
  • valentinpalkovic
  • jreinhold
  • kylegach
  • ndelangen
  • shilman
  • tmeasday
  • ghengeveld
  • winkervsbecks
  • yannbf