https://github.com/ecrmnn/camelcase
https://github.com/ecrmnn/camelcase
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ecrmnn/camelcase
- Owner: ecrmnn
- License: mit
- Created: 2017-03-15T19:24:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T06:06:10.000Z (almost 9 years ago)
- Last Synced: 2025-04-03T17:53:16.915Z (9 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# camelcase
> Convert to camelcase
[](https://travis-ci.org/ecrmnn/camelcase'.svg?branch=master)
[](https://pypi.python.org/pypi/camel-case)
[](https://pypi.python.org/pypi/camel-case)
[](https://pypi.python.org/pypi/camel-case)
### Installation
```bash
pip install camel-case
```
### Usage
```python
from camelcase import camelcase
camelcase('foo-bar')
#=> fooBar
camelcase('FoO_BAR')
#=> fooBar
camelcase('__FOO__bar__')
#=> fooBar
camelcase('foo bar')
#=> fooBar
camelcase('foo bar')
#=> fooBar
camelcase('blå_bær_sylte-tøy')
#=> blåBærSylteTøy
camelcase('blå', 'bær', 'sylte', 'tøy')
#=> blåBærSylteTøy
camelcase(['spam', 'eggs'])
#=> spamEggs
```
### Language support
Python 3.2 - 3.6 +
### License
MIT © [Daniel Eckermann](http://danieleckermann.com)