@visulima/string 1.0.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +201 -2
- package/dist/case/camel-case.d.cts +3 -3
- package/dist/case/camel-case.d.mts +3 -3
- package/dist/case/camel-case.d.ts +3 -3
- package/dist/case/capital-case.d.cts +3 -3
- package/dist/case/capital-case.d.mts +3 -3
- package/dist/case/capital-case.d.ts +3 -3
- package/dist/case/constant-case.d.cts +3 -3
- package/dist/case/constant-case.d.mts +3 -3
- package/dist/case/constant-case.d.ts +3 -3
- package/dist/case/dot-case.d.cts +3 -3
- package/dist/case/dot-case.d.mts +3 -3
- package/dist/case/dot-case.d.ts +3 -3
- package/dist/case/flat-case.d.cts +3 -3
- package/dist/case/flat-case.d.mts +3 -3
- package/dist/case/flat-case.d.ts +3 -3
- package/dist/case/flip-case.d.cts +3 -3
- package/dist/case/flip-case.d.mts +3 -3
- package/dist/case/flip-case.d.ts +3 -3
- package/dist/case/identify-case.cjs +47 -8
- package/dist/case/identify-case.d.cts +3 -3
- package/dist/case/identify-case.d.mts +3 -3
- package/dist/case/identify-case.d.ts +3 -3
- package/dist/case/identify-case.mjs +47 -8
- package/dist/case/index.d.cts +3 -3
- package/dist/case/index.d.mts +3 -3
- package/dist/case/index.d.ts +3 -3
- package/dist/case/kebab-case.d.cts +3 -3
- package/dist/case/kebab-case.d.mts +3 -3
- package/dist/case/kebab-case.d.ts +3 -3
- package/dist/case/lower-first.d.cts +3 -3
- package/dist/case/lower-first.d.mts +3 -3
- package/dist/case/lower-first.d.ts +3 -3
- package/dist/case/no-case.d.cts +3 -3
- package/dist/case/no-case.d.mts +3 -3
- package/dist/case/no-case.d.ts +3 -3
- package/dist/case/pascal-case.d.cts +3 -3
- package/dist/case/pascal-case.d.mts +3 -3
- package/dist/case/pascal-case.d.ts +3 -3
- package/dist/case/pascal-snake-case.d.cts +3 -3
- package/dist/case/pascal-snake-case.d.mts +3 -3
- package/dist/case/pascal-snake-case.d.ts +3 -3
- package/dist/case/path-case.d.cts +3 -3
- package/dist/case/path-case.d.mts +3 -3
- package/dist/case/path-case.d.ts +3 -3
- package/dist/case/sentence-case.d.cts +3 -3
- package/dist/case/sentence-case.d.mts +3 -3
- package/dist/case/sentence-case.d.ts +3 -3
- package/dist/case/snake-case.d.cts +3 -3
- package/dist/case/snake-case.d.mts +3 -3
- package/dist/case/snake-case.d.ts +3 -3
- package/dist/case/split-by-case.d.cts +3 -3
- package/dist/case/split-by-case.d.mts +3 -3
- package/dist/case/split-by-case.d.ts +3 -3
- package/dist/case/title-case.d.cts +3 -3
- package/dist/case/title-case.d.mts +3 -3
- package/dist/case/title-case.d.ts +3 -3
- package/dist/case/train-case.d.cts +3 -3
- package/dist/case/train-case.d.mts +3 -3
- package/dist/case/train-case.d.ts +3 -3
- package/dist/case/upper-first.d.cts +3 -3
- package/dist/case/upper-first.d.mts +3 -3
- package/dist/case/upper-first.d.ts +3 -3
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +11 -4
- package/dist/index.d.mts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.mjs +3 -0
- package/dist/native-string-types.d.cts +1 -1
- package/dist/native-string-types.d.mts +1 -1
- package/dist/native-string-types.d.ts +1 -1
- package/dist/packem_shared/lru-cache-B_t27XwI.d.cts +14 -0
- package/dist/packem_shared/lru-cache-B_t27XwI.d.mts +14 -0
- package/dist/packem_shared/lru-cache-B_t27XwI.d.ts +14 -0
- package/dist/packem_shared/replaceString-C7Dp5vAg.mjs +200 -0
- package/dist/packem_shared/replaceString-iYo1cDfZ.cjs +202 -0
- package/dist/packem_shared/slugify-B9zJ8G7m.cjs +50 -0
- package/dist/packem_shared/slugify-C7by01BU.mjs +48 -0
- package/dist/packem_shared/transliterate-BUI0uSNe.cjs +46092 -0
- package/dist/packem_shared/transliterate-DPctxBml.mjs +46090 -0
- package/dist/packem_shared/{types-BttWSSIk.d.ts → types-C5Pk8B8Q.d.cts} +3 -3
- package/dist/packem_shared/{types-BAd3WDHo.d.mts → types-DcGtApe2.d.ts} +3 -3
- package/dist/packem_shared/{types-BNbQJg02.d.cts → types-DmfKbIaI.d.cts} +23 -1
- package/dist/packem_shared/{types-BNbQJg02.d.mts → types-DmfKbIaI.d.mts} +23 -1
- package/dist/packem_shared/{types-BNbQJg02.d.ts → types-DmfKbIaI.d.ts} +23 -1
- package/dist/packem_shared/{types-D2-6p7t1.d.cts → types-_jqW_ZOt.d.mts} +3 -3
- package/dist/truncate.cjs +1 -0
- package/dist/truncate.mjs +1 -0
- package/dist/utils.cjs +57 -1
- package/dist/utils.d.cts +9 -13
- package/dist/utils.d.mts +9 -13
- package/dist/utils.d.ts +9 -13
- package/dist/utils.mjs +55 -0
- package/package.json +4 -4
package/dist/case/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-DmfKbIaI.cjs';
|
|
2
2
|
export { default as camelCase } from './camel-case.cjs';
|
|
3
3
|
export { default as capitalCase } from './capital-case.cjs';
|
|
4
4
|
export { default as constantCase } from './constant-case.cjs';
|
|
@@ -17,9 +17,9 @@ export { default as snakeCase } from './snake-case.cjs';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.cjs';
|
|
18
18
|
export { default as titleCase } from './title-case.cjs';
|
|
19
19
|
export { default as trainCase } from './train-case.cjs';
|
|
20
|
-
export {
|
|
20
|
+
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-C5Pk8B8Q.cjs';
|
|
21
21
|
export { default as upperFirst } from './upper-first.cjs';
|
|
22
|
-
import '../
|
|
22
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
23
23
|
|
|
24
24
|
declare const joinSegments: <T extends string = string>(segments: string[], joiner: string) => T;
|
|
25
25
|
|
package/dist/case/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-DmfKbIaI.mjs';
|
|
2
2
|
export { default as camelCase } from './camel-case.mjs';
|
|
3
3
|
export { default as capitalCase } from './capital-case.mjs';
|
|
4
4
|
export { default as constantCase } from './constant-case.mjs';
|
|
@@ -17,9 +17,9 @@ export { default as snakeCase } from './snake-case.mjs';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.mjs';
|
|
18
18
|
export { default as titleCase } from './title-case.mjs';
|
|
19
19
|
export { default as trainCase } from './train-case.mjs';
|
|
20
|
-
export {
|
|
20
|
+
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-_jqW_ZOt.mjs';
|
|
21
21
|
export { default as upperFirst } from './upper-first.mjs';
|
|
22
|
-
import '../
|
|
22
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
23
23
|
|
|
24
24
|
declare const joinSegments: <T extends string = string>(segments: string[], joiner: string) => T;
|
|
25
25
|
|
package/dist/case/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-DmfKbIaI.js';
|
|
2
2
|
export { default as camelCase } from './camel-case.js';
|
|
3
3
|
export { default as capitalCase } from './capital-case.js';
|
|
4
4
|
export { default as constantCase } from './constant-case.js';
|
|
@@ -17,9 +17,9 @@ export { default as snakeCase } from './snake-case.js';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.js';
|
|
18
18
|
export { default as titleCase } from './title-case.js';
|
|
19
19
|
export { default as trainCase } from './train-case.js';
|
|
20
|
-
export {
|
|
20
|
+
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-DcGtApe2.js';
|
|
21
21
|
export { default as upperFirst } from './upper-first.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
23
23
|
|
|
24
24
|
declare const joinSegments: <T extends string = string>(segments: string[], joiner: string) => T;
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
|
6
6
|
joiner?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
|
6
6
|
joiner?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
|
6
6
|
joiner?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
|
6
6
|
|
package/dist/case/no-case.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
|
6
6
|
|
package/dist/case/no-case.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
|
6
6
|
|
package/dist/case/no-case.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, g as PathCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const pathCase: <T extends string = string>(value?: T, options?: CaseOptions) => PathCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, g as PathCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const pathCase: <T extends string = string>(value?: T, options?: CaseOptions) => PathCase<T>;
|
|
6
6
|
|
package/dist/case/path-case.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, g as PathCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const pathCase: <T extends string = string>(value?: T, options?: CaseOptions) => PathCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, S as SentenceCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const sentenceCase: <T extends string = string>(value?: T, options?: CaseOptions) => SentenceCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, S as SentenceCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const sentenceCase: <T extends string = string>(value?: T, options?: CaseOptions) => SentenceCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, S as SentenceCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const sentenceCase: <T extends string = string>(value?: T, options?: CaseOptions) => SentenceCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, h as SnakeCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const snakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => SnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, h as SnakeCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const snakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => SnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, h as SnakeCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const snakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => SnakeCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
interface SplitOptions extends LocaleOptions {
|
|
6
6
|
handleAnsi?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
interface SplitOptions extends LocaleOptions {
|
|
6
6
|
handleAnsi?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
interface SplitOptions extends LocaleOptions {
|
|
6
6
|
handleAnsi?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, T as TitleCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare function titleCase<T extends string = string>(value?: T, options?: CaseOptions): TitleCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, T as TitleCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare function titleCase<T extends string = string>(value?: T, options?: CaseOptions): TitleCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, T as TitleCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare function titleCase<T extends string = string>(value?: T, options?: CaseOptions): TitleCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, j as TrainCase } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const trainCase: <T extends string = string>(value?: T, options?: CaseOptions) => TrainCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, j as TrainCase } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const trainCase: <T extends string = string>(value?: T, options?: CaseOptions) => TrainCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { C as CaseOptions, j as TrainCase } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const trainCase: <T extends string = string>(value?: T, options?: CaseOptions) => TrainCase<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-C5Pk8B8Q.cjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.cjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const upperFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => UpperFirst<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-_jqW_ZOt.mjs';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.mjs';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const upperFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => UpperFirst<T>;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
3
|
-
import '../
|
|
1
|
+
import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-DcGtApe2.js';
|
|
2
|
+
import '../packem_shared/types-DmfKbIaI.js';
|
|
3
|
+
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const upperFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => UpperFirst<T>;
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -25,7 +25,10 @@ const joinSegments = require('./packem_shared/joinSegments-B_7bxy5J.cjs');
|
|
|
25
25
|
const getStringTruncatedWidth = require('./get-string-truncated-width.cjs');
|
|
26
26
|
const getStringWidth = require('./get-string-width.cjs');
|
|
27
27
|
const outdent = require('./outdent.cjs');
|
|
28
|
+
const replaceString = require('./packem_shared/replaceString-iYo1cDfZ.cjs');
|
|
28
29
|
const slice = require('./slice.cjs');
|
|
30
|
+
const slugify = require('./packem_shared/slugify-B9zJ8G7m.cjs');
|
|
31
|
+
const transliterate = require('./packem_shared/transliterate-BUI0uSNe.cjs');
|
|
29
32
|
const truncate = require('./truncate.cjs');
|
|
30
33
|
const WrapMode = require('./packem_shared/WrapMode-Dsqu9BaX.cjs');
|
|
31
34
|
|
|
@@ -54,7 +57,10 @@ exports.joinSegments = joinSegments;
|
|
|
54
57
|
exports.getStringTruncatedWidth = getStringTruncatedWidth.getStringTruncatedWidth;
|
|
55
58
|
exports.getStringWidth = getStringWidth.getStringWidth;
|
|
56
59
|
exports.outdent = outdent.outdent;
|
|
60
|
+
exports.replaceString = replaceString;
|
|
57
61
|
exports.slice = slice.slice;
|
|
62
|
+
exports.slugify = slugify;
|
|
63
|
+
exports.transliterate = transliterate;
|
|
58
64
|
exports.truncate = truncate.truncate;
|
|
59
65
|
exports.WrapMode = WrapMode.WrapMode;
|
|
60
66
|
exports.wordWrap = WrapMode.wordWrap;
|
package/dist/index.d.cts
CHANGED
|
@@ -16,16 +16,23 @@ export { default as snakeCase } from './case/snake-case.cjs';
|
|
|
16
16
|
export { SplitOptions, splitByCase } from './case/split-by-case.cjs';
|
|
17
17
|
export { default as titleCase } from './case/title-case.cjs';
|
|
18
18
|
export { default as trainCase } from './case/train-case.cjs';
|
|
19
|
-
export {
|
|
19
|
+
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-C5Pk8B8Q.cjs';
|
|
20
20
|
export { default as upperFirst } from './case/upper-first.cjs';
|
|
21
21
|
export { joinSegments } from './case/index.cjs';
|
|
22
22
|
export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth } from './get-string-truncated-width.cjs';
|
|
23
23
|
export { StringWidthOptions, getStringWidth } from './get-string-width.cjs';
|
|
24
24
|
export { Outdent, Options as OutdentOptions, outdent } from './outdent.cjs';
|
|
25
|
+
import { O as OptionReplaceArray, k as IntervalArray, l as SlugifyOptions, m as OptionsTransliterate } from './packem_shared/types-DmfKbIaI.cjs';
|
|
26
|
+
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, j 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, 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-DmfKbIaI.cjs';
|
|
25
27
|
export { SliceOptions, slice } from './slice.cjs';
|
|
26
28
|
export { TruncateOptions, truncate } from './truncate.cjs';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
import './packem_shared/lru-cache-B_t27XwI.cjs';
|
|
30
|
+
|
|
31
|
+
declare const replaceString: (source: string, searches: OptionReplaceArray, ignoreRanges: IntervalArray) => string;
|
|
32
|
+
|
|
33
|
+
declare const slugify: (input: string, options?: SlugifyOptions) => string;
|
|
34
|
+
|
|
35
|
+
declare const transliterate: (source: string, options?: OptionsTransliterate) => string;
|
|
29
36
|
|
|
30
37
|
declare const WrapMode: {
|
|
31
38
|
readonly BREAK_AT_CHARACTERS: "BREAK_AT_CHARACTERS";
|
|
@@ -40,4 +47,4 @@ interface WordWrapOptions {
|
|
|
40
47
|
}
|
|
41
48
|
declare const wordWrap: (string: string, options?: WordWrapOptions) => string;
|
|
42
49
|
|
|
43
|
-
export { type WordWrapOptions, WrapMode, wordWrap };
|
|
50
|
+
export { IntervalArray, OptionReplaceArray, OptionsTransliterate, SlugifyOptions, type WordWrapOptions, WrapMode, replaceString, slugify, transliterate, wordWrap };
|
package/dist/index.d.mts
CHANGED
|
@@ -16,16 +16,23 @@ export { default as snakeCase } from './case/snake-case.mjs';
|
|
|
16
16
|
export { SplitOptions, splitByCase } from './case/split-by-case.mjs';
|
|
17
17
|
export { default as titleCase } from './case/title-case.mjs';
|
|
18
18
|
export { default as trainCase } from './case/train-case.mjs';
|
|
19
|
-
export {
|
|
19
|
+
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-_jqW_ZOt.mjs';
|
|
20
20
|
export { default as upperFirst } from './case/upper-first.mjs';
|
|
21
21
|
export { joinSegments } from './case/index.mjs';
|
|
22
22
|
export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth } from './get-string-truncated-width.mjs';
|
|
23
23
|
export { StringWidthOptions, getStringWidth } from './get-string-width.mjs';
|
|
24
24
|
export { Outdent, Options as OutdentOptions, outdent } from './outdent.mjs';
|
|
25
|
+
import { O as OptionReplaceArray, k as IntervalArray, l as SlugifyOptions, m as OptionsTransliterate } from './packem_shared/types-DmfKbIaI.mjs';
|
|
26
|
+
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, j 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, 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-DmfKbIaI.mjs';
|
|
25
27
|
export { SliceOptions, slice } from './slice.mjs';
|
|
26
28
|
export { TruncateOptions, truncate } from './truncate.mjs';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
import './packem_shared/lru-cache-B_t27XwI.mjs';
|
|
30
|
+
|
|
31
|
+
declare const replaceString: (source: string, searches: OptionReplaceArray, ignoreRanges: IntervalArray) => string;
|
|
32
|
+
|
|
33
|
+
declare const slugify: (input: string, options?: SlugifyOptions) => string;
|
|
34
|
+
|
|
35
|
+
declare const transliterate: (source: string, options?: OptionsTransliterate) => string;
|
|
29
36
|
|
|
30
37
|
declare const WrapMode: {
|
|
31
38
|
readonly BREAK_AT_CHARACTERS: "BREAK_AT_CHARACTERS";
|
|
@@ -40,4 +47,4 @@ interface WordWrapOptions {
|
|
|
40
47
|
}
|
|
41
48
|
declare const wordWrap: (string: string, options?: WordWrapOptions) => string;
|
|
42
49
|
|
|
43
|
-
export { type WordWrapOptions, WrapMode, wordWrap };
|
|
50
|
+
export { IntervalArray, OptionReplaceArray, OptionsTransliterate, SlugifyOptions, type WordWrapOptions, WrapMode, replaceString, slugify, transliterate, wordWrap };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,16 +16,23 @@ export { default as snakeCase } from './case/snake-case.js';
|
|
|
16
16
|
export { SplitOptions, splitByCase } from './case/split-by-case.js';
|
|
17
17
|
export { default as titleCase } from './case/title-case.js';
|
|
18
18
|
export { default as trainCase } from './case/train-case.js';
|
|
19
|
-
export {
|
|
19
|
+
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-DcGtApe2.js';
|
|
20
20
|
export { default as upperFirst } from './case/upper-first.js';
|
|
21
21
|
export { joinSegments } from './case/index.js';
|
|
22
22
|
export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth } from './get-string-truncated-width.js';
|
|
23
23
|
export { StringWidthOptions, getStringWidth } from './get-string-width.js';
|
|
24
24
|
export { Outdent, Options as OutdentOptions, outdent } from './outdent.js';
|
|
25
|
+
import { O as OptionReplaceArray, k as IntervalArray, l as SlugifyOptions, m as OptionsTransliterate } from './packem_shared/types-DmfKbIaI.js';
|
|
26
|
+
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, j 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, 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-DmfKbIaI.js';
|
|
25
27
|
export { SliceOptions, slice } from './slice.js';
|
|
26
28
|
export { TruncateOptions, truncate } from './truncate.js';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
import './packem_shared/lru-cache-B_t27XwI.js';
|
|
30
|
+
|
|
31
|
+
declare const replaceString: (source: string, searches: OptionReplaceArray, ignoreRanges: IntervalArray) => string;
|
|
32
|
+
|
|
33
|
+
declare const slugify: (input: string, options?: SlugifyOptions) => string;
|
|
34
|
+
|
|
35
|
+
declare const transliterate: (source: string, options?: OptionsTransliterate) => string;
|
|
29
36
|
|
|
30
37
|
declare const WrapMode: {
|
|
31
38
|
readonly BREAK_AT_CHARACTERS: "BREAK_AT_CHARACTERS";
|
|
@@ -40,4 +47,4 @@ interface WordWrapOptions {
|
|
|
40
47
|
}
|
|
41
48
|
declare const wordWrap: (string: string, options?: WordWrapOptions) => string;
|
|
42
49
|
|
|
43
|
-
export { type WordWrapOptions, WrapMode, wordWrap };
|
|
50
|
+
export { IntervalArray, OptionReplaceArray, OptionsTransliterate, SlugifyOptions, type WordWrapOptions, WrapMode, replaceString, slugify, transliterate, wordWrap };
|