UNPKG

typia

Version:

Superfast runtime validators with only one line

15 lines (14 loc) 407 B
import { _notationSnake } from "./_notationSnake.mjs"; //#region src/internal/_notationKebab.ts const _notationKebab = (str) => { let snaked = _notationSnake(str); let prefix = ""; while (snaked.startsWith("_")) { prefix += "_"; snaked = snaked.substring(1); } return `${prefix}${snaked.replaceAll("_", "-")}`; }; //#endregion export { _notationKebab }; //# sourceMappingURL=_notationKebab.mjs.map