"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const handlebars = require("handlebars");
const _ = require("lodash");
/**
 * Convert a string to Snake Case.
 *
 * @example
 * 'Foo Bar'.toSnakeCase()      // Will return `foo_bar`.
 * 'fooBar'.toSnakeCase()       // Will return `foo_bar`.
 * '--FOO-BAR--'.toSnakeCase()  // Will return `foo_bar`.
 *
 * @returns {string}
 *   The Snake Cased string.
 */
handlebars.registerHelper('toSnakeCase', function (value) {
    return _.snakeCase(value);
});
