node_modules.pascal-case.pascal-case.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-client-maven-plugin Show documentation
Show all versions of apollo-client-maven-plugin Show documentation
Maven plugin for generating graphql clients
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)
}