Skip to content

Releases: brianfunk/capstring

v1.0.0

01 Feb 06:08

Choose a tag to compare

Breaking Changes

  • Node.js 18+ required - Dropped support for older Node.js versions
  • ESM only - Package now uses ES modules (import/export)

New Features

29 Transformation Styles

Added 14 new styles:

  • kebab / slug - hello-world (URL-friendly)
  • dot - hello.world
  • path - hello/world
  • constant - HELLO_WORLD (SCREAMING_SNAKE_CASE)
  • train - Hello-World (Train-Case)
  • sponge - HeLlO (starts uppercase)
  • mock - hElLo (starts lowercase)
  • swap - Swap case (Hello → hELLO)
  • alternate - aLtErNaTe (letters only)
  • hashtag - #HelloWorld
  • acronym - ASAP (first letters)
  • rot13 - uryyb (ROT13 cipher)
  • flip - ollǝɥ (upside down)

New Exports

  • getStyles() - Returns array of all style names
  • isValidStyle() - Validates style names
  • STYLES constant - Frozen array of all 29 styles

Other Changes

  • Complete ES2022+ rewrite
  • Vitest (41 tests, 98% coverage)
  • GitHub Actions CI

Minor Release v0.1.1

19 Dec 06:32

Choose a tag to compare

Includes l33t and reverse

Initial Release v0.0.1

19 Dec 01:59

Choose a tag to compare

Initial release for NPM