summaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/camelcase-keys/index.js
blob: 0eca08c842811a281fca3a5bdc47b3c7b03bb7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
var mapObj = require('map-obj');
var camelCase = require('camelcase');

module.exports = function (input, options) {
	options = options || {};
	var exclude = options.exclude || [];
	return mapObj(input, function (key, val) {
		key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
		return [key, val];
	});
};