Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md Usage section is outdated #31

Open
charlesbmi opened this issue Aug 15, 2022 · 0 comments
Open

README.md Usage section is outdated #31

charlesbmi opened this issue Aug 15, 2022 · 0 comments

Comments

@charlesbmi
Copy link

The Usage section of the readme is somewhat outdated:

>>> import case_conversion
>>> case_conversion.snake("fooBarHTTPError")
'foo_bar_h_t_t_p_error'  # ewwww :(
>>> case_conversion.snake("fooBarHTTPError", acronyms=['HTTP'])
'foo_bar_http_error'  # pretty :)

The current API is now .snakecase() instead of .snake()

acronyms parameter also seems no longer supported:

>>> case_conversion.snakecase("fooBarHTTPError", acronyms=['HTTP'])
'foo_bar_h_t_t_p_error'

Tested using case-conversion 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant