Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function constantCase(input: string, options: Options = {}) {
return noCase(input, {
delimiter: "_",
transform: upperCase,
...options
});
}
export function pascalCase(input: string, options: Options = {}) {
return noCase(input, {
delimiter: "",
transform: pascalCaseTransform,
...options
});
}
export function capitalCase(input: string, options: Options = {}) {
return noCase(input, {
delimiter: " ",
transform: capitalCaseTransform,
...options
});
}