Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 746 Bytes

naming-helpers.md

File metadata and controls

31 lines (17 loc) · 746 Bytes

Naming Helpers

This document outlines naming helpers available.

Usage

Import the helper from the library:

import { NamingHelper } from "@supernovaio/export-helpers";

And use any static method available on the helper object NamingHelper.

Available methods

nameAsCSSVarReference

Converts a string to a CSS variable reference

nameAsCSSVarDeclaration

Converts a string to a CSS variable declaration

codeSafeVariableName

Converts a string to a code safe variable name. You can select various options how name should be generated

codeSafeVariableNameForToken

Converts a token name to a code safe variable name. You can select various options how name should be generated