UNPKG

@visulima/string

Version:

Functions for manipulating strings.

48 lines (42 loc) 3.93 kB
export { AlignTextOptions, alignText } from './align-text.js'; export { default as camelCase } from './case/camel-case.js'; export { default as capitalCase } from './case/capital-case.js'; export { default as constantCase } from './case/constant-case.js'; export { default as dotCase } from './case/dot-case.js'; export { default as flatCase } from './case/flat-case.js'; export { FlipOptions, flipCase } from './case/flip-case.js'; export { default as identifyCase } from './case/identify-case.js'; export { KebabCaseOptions, kebabCase } from './case/kebab-case.js'; export { default as lowerFirst } from './case/lower-first.js'; export { default as noCase } from './case/no-case.js'; export { default as pascalCase } from './case/pascal-case.js'; export { default as pascalSnakeCase } from './case/pascal-snake-case.js'; export { default as pathCase } from './case/path-case.js'; export { default as sentenceCase } from './case/sentence-case.js'; export { default as snakeCase } from './case/snake-case.js'; export { SplitOptions, splitByCase } from './case/split-by-case.js'; export { default as titleCase } from './case/title-case.js'; export { default as trainCase } from './case/train-case.js'; export { a as CamelCase, b as CapitalCase, C 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-CfPsw9ix.js'; export { default as upperFirst } from './case/upper-first.js'; export { joinSegments } from './case/index.js'; export { ClosestStringOptions, closestString } from './closest-string.js'; export { CompareSimilarityOptions, compareSimilarity } from './compare-similarity.js'; export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth } from './get-string-truncated-width.js'; export { StringWidthOptions, getStringWidth } from './get-string-width.js'; export { Outdent, Options as OutdentOptions, outdent } from './outdent.js'; import { O as OptionReplaceArray, l as IntervalArray, m as OptionsTransliterate } from './packem_shared/types-Daae0hGf.js'; export { A as All, n as Any, C as CharAt, o as Charmap, a as Concat, E as EndsWith, I as Includes, p as Interval, q as IsBooleanLiteral, r as IsNumberLiteral, k as IsStringLiteral, s as IsStringLiteralArray, J as Join, L as Length, M as Math, N as NodeLocale, t as OptionReplaceCombined, u as OptionReplaceObject, P as PadEnd, b as PadStart, v as Repeat, R as Replace, c as ReplaceAll, w as Reverse, S as Slice, j as SlugifyOptions, 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-Daae0hGf.js'; export { SliceOptions, slice } from './slice.js'; export { default as slugify } from './slugify.js'; export { TruncateOptions, truncate } from './truncate.js'; export { escapeRegExp, findStringOccurrences, hasChinese, hasPunctuationOrSpace, inRange } from './utilities.js'; export { WordSimilaritySortOptions, wordSimilaritySort } from './word-similarity-sort.js'; export { WordWrapOptions, WrapMode, wordWrap } from './word-wrap.js'; import './packem_shared/lru-cache-B_t27XwI.js'; declare const distance: (a: string, b: string) => number; declare const closest: (str: string, arr: readonly string[]) => string; declare const closestN: (string_: string, array: ReadonlyArray<string>, n: number) => (string | null)[]; declare const replaceString: (source: string, searches: OptionReplaceArray, ignoreRanges: IntervalArray) => string; declare const transliterate: (source: string, options?: OptionsTransliterate) => string; export { IntervalArray, OptionReplaceArray, OptionsTransliterate, closest, closestN, distance, replaceString, transliterate };