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

13 lines
237 B
JavaScript
Raw Normal View History

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