0.0.1 • Published 8 years ago

atrium-utils-beta v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

atrium-utils-beta

Shared utils for Atrium, 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.

0.0.1

8 years ago

0.0.0

8 years ago