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

14 lines
292 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
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)
}