UNPKG

hades-cli

Version:
19 lines (18 loc) 524 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const handlebars = require("handlebars"); const _ = require("lodash"); /** * Convert a string to Camel Case. * * @example * 'Foo Bar'.toSnakeCase() // Will return `fooBar`. * 'fooBar'.toSnakeCase() // Will return `fooBar`. * '--FOO-BAR--'.toSnakeCase() // Will return `fooBar`. * * @returns {string} * The Camel Case string. */ handlebars.registerHelper('toCamelCase', function (value) { return _.camelCase(value); });