GT2/GT2-iOS/node_modules/constant-case/constant-case.js

14 lines
292 B
JavaScript

var upperCase = require('upper-case')
var snakeCase = require('snake-case')
/**
* Constant case a string.
*
* @param {String} string
* @param {String} [locale]
* @return {String}
*/
module.exports = function (string, locale) {
return upperCase(snakeCase(string, locale), locale)
}