node_modules.constant-case.constant-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
The newest version!
var upperCase = require('upper-case')
var snakeCase = require('snake-case')
/**
* Constant case a string.
*
* @param {string} value
* @param {string} [locale]
* @return {string}
*/
module.exports = function (value, locale) {
return upperCase(snakeCase(value, locale), locale)
}