const toCamelCase = require('lodash').camelCase; module.exports = function makeStringsPatch(params, prefix) { const values = Object.keys(params) .map(param => { const name = toCamelCase(prefix) + '_' + param; return ' ' + `${params[param]}`; }); const patch = values.length > 0 ? values.join('\n') + '\n' : ''; return { pattern: '\n', patch, }; };