https://github.com/taronvardanyan/react-str-convert
A simple npm package to convert strings to different cases such as camelCase and snake_case.
https://github.com/taronvardanyan/react-str-convert
camel-case case conversion snake-case string
Last synced: 9 months ago
JSON representation
A simple npm package to convert strings to different cases such as camelCase and snake_case.
- Host: GitHub
- URL: https://github.com/taronvardanyan/react-str-convert
- Owner: TaronVardanyan
- Created: 2024-05-29T11:15:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T20:38:21.000Z (about 2 years ago)
- Last Synced: 2025-09-13T10:36:00.891Z (9 months ago)
- Topics: camel-case, case, conversion, snake-case, string
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-str-convert
- Size: 43.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# String Case Converter
A simple npm package to convert strings to different cases such as camelCase and snake_case.
## Installation
```sh
npm install string-case-converter
```
To use String Case Converter in your project, simply import the functions you need and call them with the desired string
input.
```
import { toCamelCase, toSnakeCase } from 'string-case-converter';
// Convert to camelCase
const camelCaseString = toCamelCase('hello_world'); // helloWorld
console.log(camelCaseString);
// Convert to snake_case
const snakeCaseString = toSnakeCase('helloWorld'); // hello_world
console.log(snakeCaseString);
```