1. camelcase-object-deep
Convert object keys recursivly to camelCase using lodash
camelcase-object-deep
Package: camelcase-object-deep
Created by: hanjukim
Last modified: Mon, 13 Jun 2022 05:30:30 GMT
Version: 1.1.7
License: Apache-2.0
Downloads: 12,398
Repository: https://github.com/hanjukim/camelcase-object-deep

Install

npm install camelcase-object-deep
yarn add camelcase-object-deep

camelcase-object-deep

NPM

Convert object keys recursivly to camelCase using lodash

Install

 $ npm install camelcase-object-deep

Usage

 const camelcaseObjectDeep = require('camelcase-object-deep');

// Convert an object
camelcaseObjectDeep({'foo-bar': true});
//=> {fooBar: true}

// Convert an array of objects
camelcaseObjectDeep([{'foo-bar': true}, {'bar-foo': false}]);
//=> [{fooBar: true}, {barFoo: false}]

camelcaseObjectDeep({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
//=> {fooBar: true, nested: {unicornRainbow: true}}
 const camelcaseObjectDeep = require('camelcase-object-deep');

const argv = require('minimist')(process.argv.slice(2));
//=> {_: [], 'foo-bar': true}

camelcaseObjectDeep(argv);
//=> {_: [], fooBar: true}

API

camelcaseObjectDeep(input)

input

Type: Object Object[]

Object or array of objects to camelCase.

License

Source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin