How to use the change-case.kebabCase 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 abpframework / abp / npm / packs / client-generator / src / angular.ts View on Github external
let contents = [] as string[];
      actionKeys.forEach(key => {
        const element = actions[key];
        console.log(element);

        switch (element.httpMethod) {
          case 'GET':
            contents.push(ServiceTemplates.getMethodTemplate(element.name, element.url));
            break;

          default:
            break;
        }
      });
      const service = ServiceTemplates.classTemplate(controller.controllerName, contents.join('\n'));
      fse.writeFileSync(`dist/${changeCase.kebabCase(controller.controllerName)}.service.ts`, service);
    });
  });
github taskcluster / taskcluster / ui / src / views / Tasks / TaskGroup / index.jsx View on Github external
Object.entries(this.state.notifyPreferences).map(([key, checked]) =>
      db.userPreferences.put(checked, kebabCase(key))
    );
github taskcluster / taskcluster / ui / src / views / Tasks / TaskGroup / index.jsx View on Github external
Object.entries(this.state.notifyPreferences).map(([key, checked]) =>
      db.userPreferences.put(checked, kebabCase(key))
    );
github Thorium-Sim / thorium / src / components / layouts / LayoutOdyssey / widgets.js View on Github external
if (!tooltipOpen) {
      playEffect("buttonHover");
    }
    setTooltipOpen(!tooltipOpen);
  };
  const Icon = icon;
  return (
    <div>
       {
          playEffect("buttonClick");
          onClick(e);
        }}
        id={`widget-${kebabCase(name)}`}
        style={{color: color || "rgb(200,150,255)"}}
      /&gt;
      {!touch &amp;&amp; (
        
          {name}
        
      )}
    </div>
  );
};