travel/admin/node_modules/constant-case/constant-case.js

14 lines
289 B
JavaScript
Raw Normal View History

2024-06-24 11:28:18 +08:00
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)
}