Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
4
MIT
1
(MIT OR CC0-1.0)
Package created
12 Oct 2014
Version published
16 Aug 2023
Maintainers
1
Total deps
5
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
camelcase-keys@9.0.0
camelcase@8.0.0
map-obj@5.0.0
quick-lru@6.1.2

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@4.18.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of camelcase-keys 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
camelcase8.0.03.43 kBMIT
prod
map-obj5.0.02.98 kBMIT
prod
quick-lru6.1.24.66 kBMIT
prod
type-fest4.18.2355.8 kB(MIT OR CC0-1.0)
prod

Visualizations

Frequently Asked Questions

What does camelcase-keys do?

Camelcase-keys is a powerful JavaScript tool that allows developers to convert the keys of an object to camel case. Camel casing is a standard naming convention for variables in JavaScript where the first word starts with a lowercase letter, and any following words are directly attached but start with an uppercase letter (like "thisIsAnExample"). Camelcase-keys leverages the camelcase package under the hood to perform this conversion.

How do you use camelcase-keys?

To utilize camelcase-keys in your code, follow these simple steps:

  1. Install the package using npm with the command npm install camelcase-keys.

  2. Import it into your JavaScript file using import camelcaseKeys from 'camelcase-keys';.

  3. Now you can use camelcaseKeys() function to convert the keys of an object or an array of objects to camel case. Here are a few examples:

    To convert keys of an object:

    camelcaseKeys({'foo-bar': true});
    // Returns {fooBar: true}
    

    To convert keys of an array of objects:

    camelcaseKeys([{'foo-bar': true}, {'bar-foo': false}]);
    // Returns [{fooBar: true}, {barFoo: false}]
    

Also, camelcase-keys provides an API to further customize the camel-casing conversion. You can exclude certain keys from conversion, decide if the function should recurse nested objects and arrays, use pascal case where the first letter of the string is also capitalized, preserve consecutive uppercase characters, and stop the function from camel-casing child objects at certain paths.

Where are the camelcase-keys docs?

The official documentation for camelcase-keys reside in its repository README.md file on GitHub. The documentation provides detailed information about installation, usage, and API options that you can use to customize how camelcase-keys works.