forked from mirror/Riven
1
0
Fork 0
Riven/riven/srcgen/node_modules/constant-case/constant-case.js

14 lines
289 B
JavaScript
Raw Normal View History

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