forked from mirror/Riven
1
0
Fork 0
Riven/riven/srcgen/node_modules/pascal-case/pascal-case.js

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