blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.29k stars 97 forks source link

Postfixing characters #322

Closed komyg closed 11 months ago

komyg commented 11 months ago

Hi, I saw that you've added the option to prefix characters.

Would you consider adding the option to postfix characters as well? For example: keeping the underscore at the end of type_?

We are using change-case to generate typescript code, and it would be useful for us to be able to keep some postfixed characters, so that we don't accidentally generate a reserved keyword such as type or const.

blakeembrey commented 11 months ago

SGTM. Done and released.