Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

@storybook/csf

Package Overview
Dependencies
1
Maintainers
13
Versions
63
Issues
File Explorer

Advanced tools

@storybook/csf

Storybook Component Story Format (CSF) utilities

    0.0.1latest

Version published
Maintainers
13
Weekly downloads
7,744,428
decreased by-14.7%

Weekly downloads

Readme

Source

Storybook Component Story Format (CSF)

A minimal set of utility functions for dealing with Storybook Component Story Format (CSF).

Install

yarn add @storybook/csf

API

See package source for function definitions and types:

  • isExportStory(key, { includeStories, excludeStories }) - Does a named export match CSF inclusion/exclusion options?

  • parseKind(kind, { rootSeparator, groupSeparator }) - Parse out the component/kind name from a path, using the given separator config.

  • sanitize(string) - Remove punctuation and illegal characters from a story ID.

  • toId(kind, name) - Generate a storybook ID from a component/kind and story name.

Contributing

If you have any suggestions, please open an issue or a PR.

All contributions are welcome!

run tests:

yarn test

Keywords

FAQs

What is @storybook/csf?

Storybook Component Story Format (CSF) utilities

Is @storybook/csf popular?

The npm package @storybook/csf receives a total of 7,508,905 weekly downloads. As such, @storybook/csf popularity was classified as popular.

Is @storybook/csf well maintained?

We found that @storybook/csf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 13 open source maintainers collaborating on the project.

Last updated on 09 Dec 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc