pascal-case.js 369 B

1234567891011121314
  1. var camelCase = require('camel-case')
  2. var upperCaseFirst = require('upper-case-first')
  3. /**
  4. * Pascal case a string.
  5. *
  6. * @param {string} value
  7. * @param {string} [locale]
  8. * @param {boolean} [mergeNumbers]
  9. * @return {string}
  10. */
  11. module.exports = function (value, locale, mergeNumbers) {
  12. return upperCaseFirst(camelCase(value, locale, mergeNumbers), locale)
  13. }