Overview :
It replaces 2 characters (the first is .
, -
or __
) to ONE letter which is the second letter but CAPITAL.
Examples
"entity_name" => "entityName"
"entity.name" => "entityName"
"entity-name" => "entityName"
{first_name:"Abdou", last_name:"TM"} => {firstName: "Abdou", lastName:"TM"}
It is compatible with Babel projects (ES7, React.JS,...)
Example :
import Camelize, {CamelCase} from 'babel-camelize';
CamelCase("first_name")
Camelize({first_name:"A", last_name:"T"})
Inspiration:
This package has been implemented & inspiring from @camelize package.
License :
MIT