v2
V2 released! Big improvements 🎉
Breaking Changes (only 2)
-
requires Node V12 or higher
-
pathCase, spaceCase, capitalCase, upperCase, lowerCase now keep special characters by default:
pathCase('$catDog')
// v1) // v2)
'cat/Dog' '$cat/Dog'
spaceCase('$catDog')
// v1) // v2)
'cat Dog' '$cat Dog'
capitalCase('$catDog')
// v1) // v2)
'Cat Dog' '$Cat Dog'
upperCase('$catDog')
// v1) // v2)
'CAT DOG' '$CAT DOG'
lowerCase('$catDog')
// v1) // v2)
'cat dog' '$cat dog'
New Features
-
you can now pass
{ keepSpecialCharacters: boolean }
to any case function to decide wether or not to strip or keep the special characters. -
new functions:
adaCase
,cobolCase
,trainCase
,dotNotation
(see updated readme) -
GREATLY improved JSDocs with emoji and examples
all changes
- chore: build dfdaf8a
- update readme 953b801
- update readme 8f3939c
- update readme 3951cdb
- update readme 9391873
- update readme dee0b5e
- update readme 4702df8
- update readme 55333c8
- update readme & tests f462755
- update readme & tests 245e217
- test: fix tests for v2 86747fc
- test: sort & rearrange 8fdc0b6
- big cleanup c3fd1ac
- Merge branch 'production' of https://github.com/mesqueeb/case-anything into special-character-playground 1b49977
- Merge pull request #16 from thim81/feat-dot-notation 5f91663
- Merge pull request #14 from thim81/feat-train-case eebd49c
- Merge branch 'production' into feat-train-case 5ca6ec1
- Merge pull request #15 from thim81/feat-ada-case 7b4d2d4
- Merge pull request #17 from thim81/feat-cobol-case db3e1cd
- Merge pull request #18 from thim81/added-npm-badge 4f1a1e6
- Added dot.notation case feature 06ce8ef
- Added COBOL-CASE feature 50ac262
- Added Ada-Case feature 3bfaa75
- Formatting 317546c
- Added NPM badges 06b8031
- Added COBOL-CASE feature 1e44ad8
- Added dot.notation case feature 3b7593e
- Fixed broken test a85f4b0
- Added Ada-Case feature 52062f9
- Added Train-Case feature c8253a3
- feat: improve implementation & tests e43fcac
- test: add tests 9dbb3c3
- test: add tests 994a6d6
- fix: #9 9a32b8f
- Merge branch 'production' of https://github.com/mesqueeb/case-anything into special-character-playground 073fd54
- testing ebb47d6