blob: 0eca08c842811a281fca3a5bdc47b3c7b03bb7d3 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2var mapObj = require('map-obj');
3var camelCase = require('camelcase');
4
5module.exports = function (input, options) {
6 options = options || {};
7 var exclude = options.exclude || [];
8 return mapObj(input, function (key, val) {
9 key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
10 return [key, val];
11 });
12};