carte-blanche-utils

0.0.1 • Public • Published

carte-blanche-utils

Shared utils for CarteBlanche, used in some plugins and the core client.

getVariationPathFromComponentPath

Turns a filename into a folder path, i.e. turns /folder/components/Button.js into /folder/components/Button. Also works with index files, turns /folder/components/Button/index.js into /folder/components/Button too.

getComponentNameFromPath

Gets the component name from a path, i.e. turns /folder/components/Button.js into Button. Uses getVariationPathFromComponentPath under the hood, so handles index files and file endings fine.

keycodes

The keycodes we need for keyboard controls.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i carte-blanche-utils

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mxstbr