Riven/riven/srcgen/node_modules/pascal-case/pascal-case.js

15 lines
369 B
JavaScript
Raw Normal View History

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)
}