path-case.js 245 B

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