How unjs/scule works
Scule is a small TypeScript string-case utility library. A caller supplies a string (or, for several utilities, word array) to an exported function and receives transformed text; splitByCase provides the shared word-splitting behavior. The README documents the public utilities, while the sampled implementation shows their direct helper calls. The type-level case transformations live separately in src/types.ts; there are no stores or external service integrations.
Main entry points: index.ts Word splitter · types.ts Type contracts
Components 13
Other components
- Library caller
- Case utilities
src/index.ts - Word splitter
src/index.ts - Uppercase check
src/index.ts - First-character helpers
src/index.ts - Pascal case
src/index.ts - Camel case
src/index.ts - Kebab case
src/index.ts - Snake case
src/index.ts - Flat case
src/index.ts - Train case
src/index.ts - Title case
src/index.ts - Type contracts
src/types.ts
Connections 16
- Library caller → Case utilities: calls exported utilities
README.md - Case utilities → Word splitter: splits words
src/index.ts - Word splitter → Uppercase check: checks characters
src/index.ts - Case utilities → First-character helpers: changes first character
src/index.ts - Case utilities → Type contracts: exports types
src/index.ts - Pascal case → Word splitter: splits input
src/index.ts - Pascal case → First-character helpers: capitalizes words
src/index.ts - Camel case → Pascal case: converts via Pascal
src/index.ts - Camel case → First-character helpers: lowercases first
src/index.ts - Kebab case → Word splitter: splits input
src/index.ts - Snake case → Kebab case: joins with underscore
src/index.ts - Flat case → Kebab case: joins without separator
src/index.ts - Train case → Word splitter: splits input
src/index.ts - Train case → First-character helpers: capitalizes words
src/index.ts - Title case → Word splitter: splits input
src/index.ts - Title case → First-character helpers: capitalizes words
src/index.ts