N00b's Programming Machine

    camelcase-object

    1.0.0 • Public • Published

    This project is an extension of camelcase-key

    Convert object keys recursivly to camelCase using camelcase

    Install

    $ npm install --save camelcase-object
    

    Usage

    const camelcaseObject = require('camelcase-object');
     
    camelcaseObject({'foo-bar': true});
    //=> {fooBar: true}
     
    camelcaseObject({'foo-bar': {'bar-foo' : true});
    //=> {fooBar: {barFoo:true}
     
    camelcaseObject({'foo-bar': {'bar-foo' : [{'Test': true}]}});
    //=> {fooBar: {barFoo:[{test:true}]}

    Install

    npm i camelcase-object

    DownloadsWeekly Downloads

    98

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • kirotnes