forked from mirror/Riven
15 lines
369 B
JavaScript
15 lines
369 B
JavaScript
var camelCase = require('camel-case')
|
|
var upperCaseFirst = require('upper-case-first')
|
|
|
|
/**
|
|
* Pascal case a string.
|
|
*
|
|
* @param {string} value
|
|
* @param {string} [locale]
|
|
* @param {boolean} [mergeNumbers]
|
|
* @return {string}
|
|
*/
|
|
module.exports = function (value, locale, mergeNumbers) {
|
|
return upperCaseFirst(camelCase(value, locale, mergeNumbers), locale)
|
|
}
|