blakeembrey / change-case

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

Add sArCaStIcCaSe #336

Closed GildedPleb closed 3 months ago

GildedPleb commented 3 months ago

This is a proposal to add sarcastic case.

Rules

Example

tHiS-iS_sArCaStIc-cAsE

Use Cases

  1. Data Mocking (instant visual verification of mocked/fake data, in addiiton to 4)
  2. Testing
  3. Adding yet another case option if more cases are needed
  4. Communicate sarcasm/irony/memes/mocking
  5. Generally adding levity
jlarmstrongiv commented 3 months ago

Very similar to Case.random('Hello!') -> 'hElLO!' in https://www.npmjs.com/package/case

blakeembrey commented 3 months ago

This is similar to the existing sponge-case: https://github.com/blakeembrey/change-case/tree/main/packages/sponge-case? Or do you specifically want to add this to the case changing library function so you can convert from other cases like camel case into this case? The main problem is that it wouldn't be able to easily convert back, so I think just using sponge-case or the case library @jlarmstrongiv mentions is probably better.