@visulima/string
Version:
Functions for manipulating strings.
44 lines (41 loc) • 3.04 kB
text/typescript
export { default as camelCase } from './case/camel-case.mjs';
export { default as capitalCase } from './case/capital-case.mjs';
export { default as constantCase } from './case/constant-case.mjs';
export { default as dotCase } from './case/dot-case.mjs';
export { default as flatCase } from './case/flat-case.mjs';
export { FlipOptions, flipCase } from './case/flip-case.mjs';
export { default as identifyCase } from './case/identify-case.mjs';
export { KebabCaseOptions, kebabCase } from './case/kebab-case.mjs';
export { default as lowerFirst } from './case/lower-first.mjs';
export { default as noCase } from './case/no-case.mjs';
export { default as pascalCase } from './case/pascal-case.mjs';
export { default as pascalSnakeCase } from './case/pascal-snake-case.mjs';
export { default as pathCase } from './case/path-case.mjs';
export { default as sentenceCase } from './case/sentence-case.mjs';
export { default as snakeCase } from './case/snake-case.mjs';
export { SplitOptions, splitByCase } from './case/split-by-case.mjs';
export { default as titleCase } from './case/title-case.mjs';
export { default as trainCase } from './case/train-case.mjs';
export { C as CamelCase, a as CapitalCase, b as CaseOptions, c as ConstantCase, D as DotCase, F as FlatCase, d as FlipCase, I as IdentifyCase, K as KebabCase, L as LocaleOptions, e as LowerFirst, N as NoCase, P as PascalCase, f as PascalSnakeCase, g as PathCase, S as SentenceCase, h as SnakeCase, i as SplitByCase, T as TitleCase, j as TrainCase, U as UpperFirst } from './packem_shared/types-BAd3WDHo.mjs';
export { default as upperFirst } from './case/upper-first.mjs';
export { joinSegments } from './case/index.mjs';
export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth } from './get-string-truncated-width.mjs';
export { StringWidthOptions, getStringWidth } from './get-string-width.mjs';
export { Outdent, Options as OutdentOptions, outdent } from './outdent.mjs';
export { SliceOptions, slice } from './slice.mjs';
export { TruncateOptions, truncate } from './truncate.mjs';
export { A as All, j as Any, C as CharAt, a as Concat, E as EndsWith, I as Includes, k as IsBooleanLiteral, l as IsNumberLiteral, m as IsStringLiteral, n as IsStringLiteralArray, J as Join, L as Length, M as Math, N as NodeLocale, P as PadEnd, b as PadStart, o as Repeat, R as Replace, c as ReplaceAll, p as Reverse, S as Slice, d as Split, e as StartsWith, T as ToLowerCase, f as ToUpperCase, g as Trim, h as TrimEnd, i as TrimStart } from './packem_shared/types-BNbQJg02.mjs';
import './utils.mjs';
declare const WrapMode: {
readonly BREAK_AT_CHARACTERS: "BREAK_AT_CHARACTERS";
readonly PRESERVE_WORDS: "PRESERVE_WORDS";
readonly STRICT_WIDTH: "STRICT_WIDTH";
};
interface WordWrapOptions {
removeZeroWidthCharacters?: boolean;
trim?: boolean;
width?: number;
wrapMode?: keyof typeof WrapMode;
}
declare const wordWrap: (string: string, options?: WordWrapOptions) => string;
export { type WordWrapOptions, WrapMode, wordWrap };