blakeembrey / change-case

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

Postfixing characters #322

Closed komyg closed 7 months ago

komyg commented 7 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 7 months ago

SGTM. Done and released.