You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
225 B

4 years ago
  1. var noCase = require('no-case')
  2. /**
  3. * Param 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. }