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

14 lines
292 B
JavaScript
Raw Normal View History

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