snake-case.js 225 B

123456789101112
  1. var noCase = require('no-case')
  2. /**
  3. * Snake case a string.
  4. *
  5. * @param {string} value
  6. * @param {string} [locale]
  7. * @return {string}
  8. */
  9. module.exports = function (value, locale) {
  10. return noCase(value, locale, '_')
  11. }