Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyan33/naming-transformer
Switching between variable naming conventions like camel, snake, and general title
https://github.com/cyan33/naming-transformer
Last synced: 27 days ago
JSON representation
Switching between variable naming conventions like camel, snake, and general title
- Host: GitHub
- URL: https://github.com/cyan33/naming-transformer
- Owner: cyan33
- Created: 2018-04-04T01:35:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T15:50:24.000Z (over 6 years ago)
- Last Synced: 2024-09-13T23:20:53.892Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# naming-transformer
## Usage
```
npm i --save naming-transformer
``````js
import {
camelToSnake,
snakeToCamel,
camelToTitle,
snakeToTitle
} from 'naming-transformer'snakeToCamel('some_variable_name') // someVariableName
camelToSnake('someVariableName') // some_variable_name
camelToTitle('thisIsAnEntirelyLowercaseString') // This is an Entirely Lowercase String
snakeToTitle('this_is_an_entirely_lowercase_string') // This is an Entirely Lowercase String
```> Title naming convention in this package refers to [this post](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html)
## Liscence
MIT @Chang