hades-cli
Version:
Hades CLI developer tool
18 lines (17 loc) • 465 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
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.
*/
String.prototype.toCamelCase = function () {
return _.camelCase(this);
};