Intact Case is the rules for interconverting naturally camelCase|StudlyCaps and snake_case which include acronym.
camelCase / StudlyCaps | snake_case |
---|---|
camelCase | camel_case |
SnakeCase | snake_case |
PHPUnit | php__unit |
getUTCDay | get_utc__day |
This library can interconvert camelCase|StudlyCaps and train-case.
camelCase / StudlyCaps | train-case |
---|---|
forgetMeNot | forget-me-not |
WebkitFlexDirection | -webkit-flex-direction |
This is the Javascript library of Intact Case. When you use this library, you must understand rules of Intact Case.
If you want to see more information, please see IntactCase.
You can test this library on a browser.
- Open /test/test.html on a browser.
- See console in a developer tools of each browser.
If you want to test other cases, edit /test/js/intact_case_test.js and run.
IntactCase - Official page for Intact Case.