Skip to content

v2

Compare
Choose a tag to compare
@mesqueeb mesqueeb released this 31 Dec 08:23

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

v1.1.5...v2.0.0