import { noCase , Options } from "no-case" ; import { upperCaseFirst } from "upper-case-first" ; export { Options } ; export function capitalCaseTransform ( input ) { return upperCaseFirst ( input . toLowerCase ( ) ) ; } export function capitalCase ( input , options = { } ) { return noCase ( input , { delimiter : " " , transform : capitalCaseTransform , ... options , } ) ; }