UNPKG

@playbooks/utils

Version:

A collection of utilities used for Playbooks.

21 lines (20 loc) 1.33 kB
export declare const camelToUnderscore: (data?: string) => string; export declare const camelToDash: (data?: string) => string; export declare const camelToString: (data?: string) => string; export declare const dashToCamel: (data?: string) => string; export declare const dashToCapital: (data?: string) => string; export declare const dashToString: (data?: string) => string; export declare const dashToUnderscore: (data?: string) => string; export declare const phoneToString: (data?: string) => string; export declare const capitalize: (data?: string) => string; export declare const deCapitalize: (data?: string) => string; export declare const stringToUnderscore: (data?: string) => string; export declare const underscoreToString: (data?: string) => string; export declare const truncate: (data?: string, count?: number, ellipsis?: boolean) => string; export declare const toPhone: (value?: string) => string; export declare const toCurrency: (value: any, precision?: number) => string; export declare const toNumber: (value: any, decimal?: number) => string; export declare const toShortNumber: (value?: number, decimal?: number) => string; export declare const toPercent: (value?: number) => string; export declare const toCents: (value?: number) => number; export declare const fromCents: (value?: number) => number;