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

13 lines
237 B
JavaScript

var sentenceCase = require('sentence-case')
/**
* Snake case a string.
*
* @param {String} str
* @param {String} [locale]
* @return {String}
*/
module.exports = function (str, locale) {
return sentenceCase(str, locale, '_')
}