https://github.com/erikhuizinga/humps
camelCase converter
https://github.com/erikhuizinga/humps
Last synced: 3 months ago
JSON representation
camelCase converter
- Host: GitHub
- URL: https://github.com/erikhuizinga/humps
- Owner: erikhuizinga
- License: lgpl-3.0
- Created: 2018-02-28T14:43:32.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-03-13T10:36:39.000Z (over 7 years ago)
- Last Synced: 2025-03-22T02:32:45.376Z (3 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
*********
``humps``
**********Convert any string to camelCase.*
Description
===========camelCase starts with a lower case alphabetic character, the rest of the string contains alphanumeric characters. Any character case in the input is ignored. Any spaces in the input capitalise the following character if alphabetic, except for the first character. Any non-alphanumeric characters are ignored.
Installation
============Shell:
.. code-block:: sh
pip install humps
Python:
.. code-block:: python
from humps.camel import case
print(case('Hello, World!'))
# Output: helloWorld