var decap = require('./decapitalize');
var toString = require('./toString');

module.exports = function camelize(str, decapitalize) {
    string = toString(string);
    string = string.replace(/[-_\s]+(.)?/g, function(match, c) {
        return c ? c.toUpperCase() : "";
    });

    if (decapitalize === true) {
        return decap(string);
    } else {
        return string;
    }
};

@@ -2,16 +2,23 @@
 ar decap
+italize
  = requi
@@ -118,18 +118,16 @@
 ze(str, 
-de
 capitali
@@ -286,18 +286,16 @@
     if (
-de
 capitali
@@ -328,21 +328,14 @@
 urn 
-decap(
 string
-)
 ;%0A  
@@ -356,29 +356,43 @@
      return 
+decapitalize(
 string
+)
 ;%0A    %7D%0A%7D;%0A

Update camelize.js