2 var mapObj = require('map-obj');
3 var decamelize = require('decamelize');
5 module.exports = function (input, separator, options) {
6 if (typeof separator !== 'string') {
11 options = options || {};
12 separator = separator || options.separator;
13 var exclude = options.exclude || [];
15 return mapObj(input, function (key, val) {
16 key = exclude.indexOf(key) === -1 ? decamelize(key, separator) : key;