Spaces:
Sleeping
Sleeping
|
Download src/node_modules/camel-case/README.md from PierreRouanet/gstreamer_test: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/camel-case/README.md
- Command line
-
hf download hf://spaces/PierreRouanet/gstreamer_test/src/node_modules/camel-case/README.md
-
curl -L -o README.md https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/camel-case/README.md
1.3 kB
| # Camel Case | |
| [![NPM version][npm-image]][npm-url] | |
| [![NPM downloads][downloads-image]][downloads-url] | |
| [![Bundle size][bundlephobia-image]][bundlephobia-url] | |
| > Transform into a string with the separator denoted by the next word capitalized. | |
| ## Installation | |
| ``` | |
| npm install camel-case --save | |
| ``` | |
| ## Usage | |
| ```js | |
| import { camelCase } from "camel-case"; | |
| camelCase("string"); //=> "string" | |
| camelCase("dot.case"); //=> "dotCase" | |
| camelCase("PascalCase"); //=> "pascalCase" | |
| camelCase("version 1.2.10"); //=> "version_1_2_10" | |
| ``` | |
| The function also accepts [`options`](https://github.com/blakeembrey/change-case#options). | |
| ### Merge Numbers | |
| If you'd like to remove the behavior prefixing `_` before numbers, you can use `camelCaseTransformMerge`: | |
| ```js | |
| import { camelCaseTransformMerge } from "camel-case"; | |
| camelCase("version 12", { transform: camelCaseTransformMerge }); //=> "version12" | |
| ``` | |
| ## License | |
| MIT | |
| [npm-image]: https://img.shields.io/npm/v/camel-case.svg?style=flat | |
| [npm-url]: https://npmjs.org/package/camel-case | |
| [downloads-image]: https://img.shields.io/npm/dm/camel-case.svg?style=flat | |
| [downloads-url]: https://npmjs.org/package/camel-case | |
| [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/camel-case.svg | |
| [bundlephobia-url]: https://bundlephobia.com/result?p=camel-case | |