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 18, 2024 via pnpm

change-case 4.1.2

Transform a string between `camelCase`, `PascalCase`, `Capital Case`, `snake_case`, `param-case`, `CONSTANT_CASE` and others
Package summary
Share
0
issues
2
licenses
15
MIT
1
0BSD
Package created
15 Apr 2013
Version published
2 Dec 2020
Maintainers
1
Total deps
16
Direct deps
12
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
15 Packages, Including:
camel-case@4.1.2
capital-case@1.0.4
change-case@4.1.2
constant-case@3.0.4
dot-case@3.0.4
header-case@2.0.4
lower-case@2.0.2
no-case@3.0.4
param-case@3.0.4
pascal-case@3.1.2
path-case@3.0.4
sentence-case@3.0.4
snake-case@3.0.4
upper-case-first@2.0.2
upper-case@2.0.2

BSD Zero Clause 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
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.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

12
All Dependencies CSV
β“˜ This is a list of change-case 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
camel-case4.1.24.01 kBMIT
prod
capital-case1.0.43.7 kBMIT
prod
constant-case3.0.43.65 kBMIT
prod
dot-case3.0.43.54 kBMIT
prod
header-case2.0.43.52 kBMIT
prod
no-case3.0.45.6 kBMIT
prod
param-case3.0.43.51 kBMIT
prod
pascal-case3.1.24.09 kBMIT
prod
path-case3.0.43.5 kBMIT
prod
sentence-case3.0.43.79 kBMIT
prod
snake-case3.0.43.53 kBMIT
prod
tslib2.6.215.59 kB0BSD
prod

Visualizations

Frequently Asked Questions

What does change-case do?

Change-case is a highly useful JavaScript library that allows developers to seamlessly convert a string between different case formats like camelCase, PascalCase, Capital Case, snake_case, kebab-case, CONSTANT_CASE, and several others. This npm package augments the development process by enabling easier and faster manipulation of textual data.

How do you use change-case?

To utilize change-case, start by installing the library into your project using npm. The installation command is as follows:

npm install change-case --save

Following the successful installation, you can implement the change-case functions in your JavaScript code. Here's an illustration of its usage:

const changeCase = require('change-case');

let str = "Hello World";

let camelCased = changeCase.camelCase(str);  //Outputs: helloWorld
let pascalCased = changeCase.pascalCase(str); //Outputs: HelloWorld
let snakeCased = changeCase.snakeCase(str); //Outputs: hello_world
let kebabCased = changeCase.kebabCase(str); //Outputs: hello-world
let dotCased = changeCase.dotCase(str); //Outputs: hello.world

Also, change-case exports a split function that can be used to build your own case formatting methods. For instance:

let strSplit = changeCase.split("fooBar")
  .map((x) => x.toLowerCase())
  .join("_"); //Outputs: "foo_bar"

Furthermore, change-case provides a feature for transforming the keys of an object to any case:

import * as changeKeys from "change-case/keys";

let newObj = changeKeys.camelCase({ TEST_KEY: true }); //Outputs: { testKey: true }

Where are the change-case docs?

The detailed documentation and usage instructions for change-case can be found on its GitHub page: https://github.com/blakeembrey/change-case. Additionally, you can also explore the API references, options, and functions offered by the library on this page. These resources provide a comprehensive guide, helping you get the most out of the change-case library.