How to use the change-case.lowerCase function in change-case

To help you get started, we’ve selected a few change-case examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Thorium-Sim / thorium / server / classes / simulator.js View on Github external
unhideCard(cardName) {
    const name = lowerCase(camelCase(cardName));
    const cards = this.stations
      ? this.stations.reduce((acc, s) => acc.concat(s.cards), [])
      : [];
    cards.forEach(card => {
      if (
        card &&
        (lowerCase(camelCase(card.name)) === name ||
          lowerCase(camelCase(card.component)) === name)
      ) {
        card.hidden = false;
      }
    });
  }
  // Command Line
github rodi01 / RenameIt / src / lib / Rename.js View on Github external
function currentLayer(newLayerName, layerName) {
  // UpperCase
  let name = newLayerName.replace(/%\*u%/gi, changeCase.upperCase(layerName))

  // LowerCase
  name = name.replace(/%\*l%/gi, changeCase.lowerCase(layerName))

  // Title Case
  name = name.replace(/%\*t%/gi, toTitleCase(layerName))

  // UpperCase First
  name = name.replace(/%\*uf%/gi, changeCase.upperCaseFirst(layerName))

  // Camel Case
  name = name.replace(/%\*c%/gi, changeCase.camelCase(layerName))

  // Param Case
  name = name.replace(/%\*pc%/gi, changeCase.paramCase(layerName))

  // Layername
  name = name.replace(/%\*/g, layerName)
github taskcluster / taskcluster / ui / src / components / Dashboard / DocsSidebarList.jsx View on Github external
{item.hasChildren &&
                  (menuOpen && currentMenu === item.label ? (
                    
                  ) : (
                    
                  ))}
              
            
            
              <div>
                {docsTableOfContents[lowerCase(item.label)] &amp;&amp;
                  docsTableOfContents[lowerCase(item.label)].children.map(
                    child =&gt; this.renderNode(child, true)
                  )}
              </div>
            
          
        ))}
github iyegoroff / make-react-native-package / index.js View on Github external
const packageCase = (input) => lowerCase(camelCase(input))
github taskcluster / taskcluster / ui / src / components / TaskGroupTable / index.jsx View on Github external
? tasks.filter(({ node: { metadata: { name } } }) =>
        lowerCase(name).includes(searchTerm)
      )
github taskcluster / taskcluster / ui / src / components / TaskGroupTable / index.jsx View on Github external
{() =&gt; null}
            
            
              {ItemRenderer}
            
          
        ) : (
          
            No
            {filter ? ` ${lowerCase(filter)}` : ''} tasks available
          
        )}
      
    );
  }
}
github taskcluster / taskcluster / src / views / Documentation / index.jsx View on Github external
getPageInfo() {
    const menuItem = DOCS_MENU_ITEMS.find(
      ({ path }) =>
        window.location.pathname !== DOCS_PATH_PREFIX &&
        path !== DOCS_PATH_PREFIX &&
        window.location.pathname.startsWith(path)
    );

    if (!menuItem) {
      return null;
    }

    const rootNode = docsTableOfContents[lowerCase(menuItem.label)];

    return this.findChildFromRootNode(rootNode) || rootNode;
  }
github taskcluster / taskcluster / ui / src / views / Documentation / index.jsx View on Github external
getPageInfo() {
    const menuItem = DOCS_MENU_ITEMS.find(
      ({ path }) =>
        window.location.pathname !== DOCS_PATH_PREFIX &&
        path !== DOCS_PATH_PREFIX &&
        window.location.pathname.startsWith(path)
    );

    if (!menuItem) {
      return null;
    }

    const rootNode = docsTableOfContents[lowerCase(menuItem.label)];

    return this.findChildFromRootNode(rootNode);
  }
github taskcluster / taskcluster / ui / src / components / TaskGroupTable / index.jsx View on Github external
render() {
    const { sortBy, sortDirection, tasks } = this.state;
    const { classes, filter, searchTerm } = this.props;
    const iconSize = 16;
    const items = createSortedTasks(
      tasks,
      sortBy,
      sortDirection,
      filter,
      lowerCase(searchTerm)
    );
    const itemCount = items.length;
    const ItemRenderer = ({ index, style }) =&gt; {
      const taskGroup = items[index].node;

      return (
github Thorium-Sim / thorium / server / src / classes / simulator.js View on Github external
cards.forEach(card => {
      if (
        card &&
        (lowerCase(camelCase(card.name)) === name ||
          lowerCase(camelCase(card.component)) === name)
      ) {
        card.hide();
      }
    });
  }