Socket
Book a DemoInstallSign in
Socket

carte-blanche-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carte-blanche-utils

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

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 01 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts