ape-repo/ape-releasing

View on GitHub
lib/_parse_options.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

const stringcase = require('stringcase')

module.exports = function _parseOptions (options) {
  let parsed = {}
  Object.keys(options || {}).forEach((key) => {
    parsed[ stringcase.camelcase(key) ] = options[ key ]
  })
  return parsed
}