@visulima/string
Version:
Functions for manipulating strings.
44 lines (43 loc) • 4.01 kB
TypeScript
export { type 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 { type FlipOptions, flipCase } from "./case/flip-case.js";
export { default as identifyCase } from "./case/identify-case.js";
export { type 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 { type 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 type { 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.d-fhe030jX.js";
export { default as upperFirst } from "./case/upper-first.js";
export { joinSegments } from "./case/index.js";
export { type ClosestStringOptions, closestString } from "./closest-string.js";
export { type CompareSimilarityOptions, compareSimilarity } from "./compare-similarity.js";
export { countOccurrences } from "./count-occurrences.js";
export { direction } from "./direction.js";
export { type EastAsianWidthOptions, type EastAsianWidthType, eastAsianWidth, eastAsianWidthType } from "./east-asian-width.js";
export { type ExcerptOptions, excerpt } from "./excerpt.js";
export { type StringTruncatedWidthOptions, type StringTruncatedWidthResult, getStringTruncatedWidth } from "./get-string-truncated-width.js";
export { type StringWidthOptions, getStringWidth } from "./get-string-width.js";
export { type IndentOptions, dedent, indent, redent, stripIndent } from "./indent.js";
export { default as isFullwidthCodePoint } from "./is-fullwidth-code-point.js";
export { closest, closestN, distance, similarity } from "./levenshtein.js";
export { type Outdent, type Options as OutdentOptions, outdent } from "./outdent.js";
export { default as replaceString } from "./replace-string.js";
export { type SliceOptions, slice } from "./slice.js";
export { default as slugify } from "./slugify.js";
export { default as transliterate } from "./transliterate.js";
export { type TruncateOptions, truncate } from "./truncate.js";
export type { A as All, a as Any, C as CharAt, b as Charmap, c as Concat, E as EndsWith, I as Includes, d as Interval, e as IntervalArray, f as IsBooleanLiteral, g as IsNumberLiteral, h as IsStringLiteral, i as IsStringLiteralArray, J as Join, L as Length, M as Math, N as NodeLocale, O as OptionReplaceArray, j as OptionReplaceCombined, k as OptionReplaceObject, l as OptionsTransliterate, P as PadEnd, m as PadStart, R as Repeat, n as Replace, o as ReplaceAll, p as Reverse, S as Slice, q as SlugifyOptions, r as Split, s as StartsWith, T as ToLowerCase, t as ToUpperCase, u as Trim, v as TrimEnd, w as TrimStart } from "./packem_shared/types.d-CmNvyl4l.js";
export { escapeRegExp, findStringOccurrences, hasChinese, hasPunctuationOrSpace, inRange } from "./utilities.js";
export { type WordSimilaritySortOptions, wordSimilaritySort } from "./word-similarity-sort.js";
export { type WordWrapOptions, WrapMode, wordWrap } from "./word-wrap.js";