mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
add node modules to repo
This commit is contained in:
12
node_modules/camelcase-keys/index.js
generated
vendored
Normal file
12
node_modules/camelcase-keys/index.js
generated
vendored
Normal file
@@ -0,0 +1,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];
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user