@oxog/strkit 1.1.1 → 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/dist/{chunk-JKMUUCWG.cjs → chunk-7GAPT34Z.cjs} +3 -3
- package/dist/chunk-7GAPT34Z.cjs.map +1 -0
- package/dist/{chunk-BOMMPZND.mjs → chunk-VOXPK5JD.mjs} +3 -3
- package/dist/chunk-VOXPK5JD.mjs.map +1 -0
- package/dist/extend.cjs +1 -1
- package/dist/extend.d.cts +1 -1
- package/dist/extend.d.ts +1 -1
- package/dist/extend.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{types-C3PxNZVq.d.cts → types-BeGdhyi5.d.cts} +1 -1
- package/dist/{types-C3PxNZVq.d.ts → types-BeGdhyi5.d.ts} +1 -1
- package/package.json +29 -13
- package/dist/chunk-BOMMPZND.mjs.map +0 -1
- package/dist/chunk-JKMUUCWG.cjs.map +0 -1
package/dist/extend.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk7GAPT34Z_cjs=require('./chunk-7GAPT34Z.cjs');var Xt=new Set(Object.keys(String.prototype));String.prototype.camelCase=function(){return chunk7GAPT34Z_cjs.f(this.toString())};String.prototype.kebabCase=function(){return chunk7GAPT34Z_cjs.g(this.toString())};String.prototype.snakeCase=function(){return chunk7GAPT34Z_cjs.h(this.toString())};String.prototype.pascalCase=function(){return chunk7GAPT34Z_cjs.i(this.toString())};String.prototype.titleCase=function(){return chunk7GAPT34Z_cjs.j(this.toString())};String.prototype.sentenceCase=function(){return chunk7GAPT34Z_cjs.k(this.toString())};String.prototype.constantCase=function(){return chunk7GAPT34Z_cjs.l(this.toString())};String.prototype.dotCase=function(){return chunk7GAPT34Z_cjs.m(this.toString())};String.prototype.pathCase=function(){return chunk7GAPT34Z_cjs.n(this.toString())};String.prototype.headerCase=function(){return chunk7GAPT34Z_cjs.o(this.toString())};String.prototype.swapCase=function(){return chunk7GAPT34Z_cjs.p(this.toString())};String.prototype.capitalize=function(){return chunk7GAPT34Z_cjs.s(this.toString())};String.prototype.decapitalize=function(){return chunk7GAPT34Z_cjs.t(this.toString())};String.prototype.trimChars=function(t){return chunk7GAPT34Z_cjs.u(this.toString(),t)};String.prototype.trimStartChars=function(t){return chunk7GAPT34Z_cjs.v(this.toString(),t)};String.prototype.trimEndChars=function(t){return chunk7GAPT34Z_cjs.w(this.toString(),t)};String.prototype.padBoth=function(t,n){return chunk7GAPT34Z_cjs.x(this.toString(),t,n)};String.prototype.reverse=function(){return chunk7GAPT34Z_cjs.B(this.toString())};String.prototype.truncate=function(t,n){return chunk7GAPT34Z_cjs.C(this.toString(),t,n)};String.prototype.wrap=function(t,n){return chunk7GAPT34Z_cjs.D(this.toString(),t,n)};String.prototype.unwrap=function(t,n){return chunk7GAPT34Z_cjs.E(this.toString(),t,n)};String.prototype.insert=function(t,n){return chunk7GAPT34Z_cjs.G(this.toString(),t,n)};String.prototype.remove=function(t,n){return chunk7GAPT34Z_cjs.H(this.toString(),t,n)};String.prototype.replaceAllStr=function(t,n){return chunk7GAPT34Z_cjs.J(this.toString(),t,n)};String.prototype.between=function(t,n){return chunk7GAPT34Z_cjs.K(this.toString(),t,n)};String.prototype.before=function(t){return chunk7GAPT34Z_cjs.L(this.toString(),t)};String.prototype.after=function(t){return chunk7GAPT34Z_cjs.M(this.toString(),t)};String.prototype.beforeLast=function(t){return chunk7GAPT34Z_cjs.N(this.toString(),t)};String.prototype.afterLast=function(t){return chunk7GAPT34Z_cjs.O(this.toString(),t)};String.prototype.append=function(...t){return chunk7GAPT34Z_cjs.P(this.toString(),...t)};String.prototype.prepend=function(...t){return chunk7GAPT34Z_cjs.Q(this.toString(),...t)};String.prototype.surround=function(t){return chunk7GAPT34Z_cjs.R(this.toString(),t)};String.prototype.collapseWhitespace=function(){return chunk7GAPT34Z_cjs.S(this.toString())};String.prototype.lines=function(){return chunk7GAPT34Z_cjs.T(this.toString())};String.prototype.words=function(){return chunk7GAPT34Z_cjs.U(this.toString())};String.prototype.chars=function(){return chunk7GAPT34Z_cjs.V(this.toString())};String.prototype.escape=function(){return chunk7GAPT34Z_cjs.ra(this.toString())};String.prototype.unescape=function(){return chunk7GAPT34Z_cjs.sa(this.toString())};String.prototype.escapeHtml=function(){return chunk7GAPT34Z_cjs.ta(this.toString())};String.prototype.unescapeHtml=function(){return chunk7GAPT34Z_cjs.ua(this.toString())};String.prototype.escapeRegex=function(){return chunk7GAPT34Z_cjs.va(this.toString())};String.prototype.slugify=function(t){return chunk7GAPT34Z_cjs.wa(this.toString(),t)};String.prototype.sanitizeFilename=function(){return chunk7GAPT34Z_cjs.xa(this.toString())};String.prototype.stripHtml=function(){return chunk7GAPT34Z_cjs.ya(this.toString())};String.prototype.stripTags=function(t){return chunk7GAPT34Z_cjs.za(this.toString(),t)};String.prototype.clean=function(){return chunk7GAPT34Z_cjs.Aa(this.toString())};String.prototype.normalizeStr=function(){return chunk7GAPT34Z_cjs.Ba(this.toString())};String.prototype.latinise=function(){return chunk7GAPT34Z_cjs.Ca(this.toString())};String.prototype.transliterate=function(t){return chunk7GAPT34Z_cjs.Da(this.toString(),t)};String.prototype.template=function(t,n){return chunk7GAPT34Z_cjs.Ea(this.toString(),t,n)};String.prototype.sprintf=function(...t){return chunk7GAPT34Z_cjs.Fa(this.toString(),...t)};String.prototype.mask=function(t){return chunk7GAPT34Z_cjs.Ga(this.toString(),t)};String.prototype.unmask=function(t){return chunk7GAPT34Z_cjs.Ha(this.toString(),t)};String.prototype.isEmail=function(){return chunk7GAPT34Z_cjs.W(this.toString())};String.prototype.isUrl=function(){return chunk7GAPT34Z_cjs.X(this.toString())};String.prototype.isUuid=function(t){return chunk7GAPT34Z_cjs.Y(this.toString(),t)};String.prototype.isIp=function(){return chunk7GAPT34Z_cjs.Z(this.toString())};String.prototype.isIpv4=function(){return chunk7GAPT34Z_cjs._(this.toString())};String.prototype.isIpv6=function(){return chunk7GAPT34Z_cjs.$(this.toString())};String.prototype.isPhone=function(){return chunk7GAPT34Z_cjs.aa(this.toString())};String.prototype.isCreditCard=function(){return chunk7GAPT34Z_cjs.ba(this.toString())};String.prototype.isEmpty=function(){return chunk7GAPT34Z_cjs.ca(this.toString())};String.prototype.isBlank=function(){return chunk7GAPT34Z_cjs.da(this.toString())};String.prototype.isAlpha=function(){return chunk7GAPT34Z_cjs.ea(this.toString())};String.prototype.isNumeric=function(){return chunk7GAPT34Z_cjs.fa(this.toString())};String.prototype.isAlphanumeric=function(){return chunk7GAPT34Z_cjs.ga(this.toString())};String.prototype.isHex=function(){return chunk7GAPT34Z_cjs.ha(this.toString())};String.prototype.isBase64=function(){return chunk7GAPT34Z_cjs.ia(this.toString())};String.prototype.isJson=function(){return chunk7GAPT34Z_cjs.ja(this.toString())};String.prototype.isUpperCase=function(){return chunk7GAPT34Z_cjs.ka(this.toString())};String.prototype.isLowerCase=function(){return chunk7GAPT34Z_cjs.la(this.toString())};String.prototype.wordCount=function(){return chunk7GAPT34Z_cjs.Wa(this.toString())};String.prototype.charCount=function(t){return chunk7GAPT34Z_cjs.Xa(this.toString(),t)};String.prototype.lineCount=function(){return chunk7GAPT34Z_cjs.Ya(this.toString())};String.prototype.sentenceCount=function(){return chunk7GAPT34Z_cjs.Za(this.toString())};String.prototype.paragraphCount=function(){return chunk7GAPT34Z_cjs._a(this.toString())};String.prototype.byteSize=function(){return chunk7GAPT34Z_cjs.$a(this.toString())};String.prototype.entropy=function(){return chunk7GAPT34Z_cjs.ab(this.toString())};String.prototype.frequency=function(t){return chunk7GAPT34Z_cjs.bb(this.toString(),t)};String.prototype.readingTime=function(t){return chunk7GAPT34Z_cjs.cb(this.toString(),t)};String.prototype.speakingTime=function(t){return chunk7GAPT34Z_cjs.db(this.toString(),t)};String.prototype.containsStr=function(t,n){return chunk7GAPT34Z_cjs.sb(this.toString(),t,n)};String.prototype.countOccurrences=function(t,n){return chunk7GAPT34Z_cjs.xb(this.toString(),t,n)};String.prototype.positions=function(t,n){return chunk7GAPT34Z_cjs.yb(this.toString(),t,n)};String.prototype.matchStr=function(t){return chunk7GAPT34Z_cjs.zb(this.toString(),t)};String.prototype.matchAllStr=function(t){return chunk7GAPT34Z_cjs.Ab(this.toString(),t)};String.prototype.levenshtein=function(t){return chunk7GAPT34Z_cjs.La(this.toString(),t)};String.prototype.levenshteinRatio=function(t){return chunk7GAPT34Z_cjs.Ma(this.toString(),t)};String.prototype.dice=function(t){return chunk7GAPT34Z_cjs.Na(this.toString(),t)};String.prototype.jaroWinkler=function(t){return chunk7GAPT34Z_cjs.Oa(this.toString(),t)};String.prototype.hamming=function(t){return chunk7GAPT34Z_cjs.Pa(this.toString(),t)};String.prototype.cosine=function(t){return chunk7GAPT34Z_cjs.Qa(this.toString(),t)};String.prototype.similarity=function(t,n){return chunk7GAPT34Z_cjs.Ta(this.toString(),t,n)};String.prototype.diffChars=function(t){return chunk7GAPT34Z_cjs.lb(this.toString(),t)};String.prototype.diffWords=function(t){return chunk7GAPT34Z_cjs.mb(this.toString(),t)};String.prototype.diffLines=function(t){return chunk7GAPT34Z_cjs.nb(this.toString(),t)};String.prototype.diff=function(t,n){return chunk7GAPT34Z_cjs.ob(this.toString(),t,n)};String.prototype.pluralize=function(t,n){return chunk7GAPT34Z_cjs.eb(this.toString(),t,n)};String.prototype.singularize=function(){return chunk7GAPT34Z_cjs.fb(this.toString())};String.prototype.isPlural=function(){return chunk7GAPT34Z_cjs.gb(this.toString())};String.prototype.isSingular=function(){return chunk7GAPT34Z_cjs.hb(this.toString())};for(let t of Object.keys(String.prototype))Xt.has(t)||Object.defineProperty(String.prototype,t,{enumerable:false});//# sourceMappingURL=extend.cjs.map
|
|
2
2
|
//# sourceMappingURL=extend.cjs.map
|
package/dist/extend.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions } from './types-
|
|
1
|
+
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions } from './types-BeGdhyi5.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* String Prototype Extensions
|
package/dist/extend.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions } from './types-
|
|
1
|
+
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions } from './types-BeGdhyi5.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* String Prototype Extensions
|
package/dist/extend.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {f,g,h,i,j,k,l,m,n,o,p,s,t,u,v,w,x,B,C,D,E,G,H,J,K,L,M,N,O,P,Q,R,S,T,U,V,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,W,X,Y,Z,_,$,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,Wa,Xa,Ya,Za,_a,$a,ab,bb,cb,db,sb,xb,yb,zb,Ab,La,Ma,Na,Oa,Pa,Qa,Ta,lb,mb,nb,ob,eb,fb,gb,hb}from'./chunk-
|
|
1
|
+
import {f,g,h,i,j,k,l,m,n,o,p,s,t,u,v,w,x,B,C,D,E,G,H,J,K,L,M,N,O,P,Q,R,S,T,U,V,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,W,X,Y,Z,_,$,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,Wa,Xa,Ya,Za,_a,$a,ab,bb,cb,db,sb,xb,yb,zb,Ab,La,Ma,Na,Oa,Pa,Qa,Ta,lb,mb,nb,ob,eb,fb,gb,hb}from'./chunk-VOXPK5JD.mjs';var Xt=new Set(Object.keys(String.prototype));String.prototype.camelCase=function(){return f(this.toString())};String.prototype.kebabCase=function(){return g(this.toString())};String.prototype.snakeCase=function(){return h(this.toString())};String.prototype.pascalCase=function(){return i(this.toString())};String.prototype.titleCase=function(){return j(this.toString())};String.prototype.sentenceCase=function(){return k(this.toString())};String.prototype.constantCase=function(){return l(this.toString())};String.prototype.dotCase=function(){return m(this.toString())};String.prototype.pathCase=function(){return n(this.toString())};String.prototype.headerCase=function(){return o(this.toString())};String.prototype.swapCase=function(){return p(this.toString())};String.prototype.capitalize=function(){return s(this.toString())};String.prototype.decapitalize=function(){return t(this.toString())};String.prototype.trimChars=function(t){return u(this.toString(),t)};String.prototype.trimStartChars=function(t){return v(this.toString(),t)};String.prototype.trimEndChars=function(t){return w(this.toString(),t)};String.prototype.padBoth=function(t,n){return x(this.toString(),t,n)};String.prototype.reverse=function(){return B(this.toString())};String.prototype.truncate=function(t,n){return C(this.toString(),t,n)};String.prototype.wrap=function(t,n){return D(this.toString(),t,n)};String.prototype.unwrap=function(t,n){return E(this.toString(),t,n)};String.prototype.insert=function(t,n){return G(this.toString(),t,n)};String.prototype.remove=function(t,n){return H(this.toString(),t,n)};String.prototype.replaceAllStr=function(t,n){return J(this.toString(),t,n)};String.prototype.between=function(t,n){return K(this.toString(),t,n)};String.prototype.before=function(t){return L(this.toString(),t)};String.prototype.after=function(t){return M(this.toString(),t)};String.prototype.beforeLast=function(t){return N(this.toString(),t)};String.prototype.afterLast=function(t){return O(this.toString(),t)};String.prototype.append=function(...t){return P(this.toString(),...t)};String.prototype.prepend=function(...t){return Q(this.toString(),...t)};String.prototype.surround=function(t){return R(this.toString(),t)};String.prototype.collapseWhitespace=function(){return S(this.toString())};String.prototype.lines=function(){return T(this.toString())};String.prototype.words=function(){return U(this.toString())};String.prototype.chars=function(){return V(this.toString())};String.prototype.escape=function(){return ra(this.toString())};String.prototype.unescape=function(){return sa(this.toString())};String.prototype.escapeHtml=function(){return ta(this.toString())};String.prototype.unescapeHtml=function(){return ua(this.toString())};String.prototype.escapeRegex=function(){return va(this.toString())};String.prototype.slugify=function(t){return wa(this.toString(),t)};String.prototype.sanitizeFilename=function(){return xa(this.toString())};String.prototype.stripHtml=function(){return ya(this.toString())};String.prototype.stripTags=function(t){return za(this.toString(),t)};String.prototype.clean=function(){return Aa(this.toString())};String.prototype.normalizeStr=function(){return Ba(this.toString())};String.prototype.latinise=function(){return Ca(this.toString())};String.prototype.transliterate=function(t){return Da(this.toString(),t)};String.prototype.template=function(t,n){return Ea(this.toString(),t,n)};String.prototype.sprintf=function(...t){return Fa(this.toString(),...t)};String.prototype.mask=function(t){return Ga(this.toString(),t)};String.prototype.unmask=function(t){return Ha(this.toString(),t)};String.prototype.isEmail=function(){return W(this.toString())};String.prototype.isUrl=function(){return X(this.toString())};String.prototype.isUuid=function(t){return Y(this.toString(),t)};String.prototype.isIp=function(){return Z(this.toString())};String.prototype.isIpv4=function(){return _(this.toString())};String.prototype.isIpv6=function(){return $(this.toString())};String.prototype.isPhone=function(){return aa(this.toString())};String.prototype.isCreditCard=function(){return ba(this.toString())};String.prototype.isEmpty=function(){return ca(this.toString())};String.prototype.isBlank=function(){return da(this.toString())};String.prototype.isAlpha=function(){return ea(this.toString())};String.prototype.isNumeric=function(){return fa(this.toString())};String.prototype.isAlphanumeric=function(){return ga(this.toString())};String.prototype.isHex=function(){return ha(this.toString())};String.prototype.isBase64=function(){return ia(this.toString())};String.prototype.isJson=function(){return ja(this.toString())};String.prototype.isUpperCase=function(){return ka(this.toString())};String.prototype.isLowerCase=function(){return la(this.toString())};String.prototype.wordCount=function(){return Wa(this.toString())};String.prototype.charCount=function(t){return Xa(this.toString(),t)};String.prototype.lineCount=function(){return Ya(this.toString())};String.prototype.sentenceCount=function(){return Za(this.toString())};String.prototype.paragraphCount=function(){return _a(this.toString())};String.prototype.byteSize=function(){return $a(this.toString())};String.prototype.entropy=function(){return ab(this.toString())};String.prototype.frequency=function(t){return bb(this.toString(),t)};String.prototype.readingTime=function(t){return cb(this.toString(),t)};String.prototype.speakingTime=function(t){return db(this.toString(),t)};String.prototype.containsStr=function(t,n){return sb(this.toString(),t,n)};String.prototype.countOccurrences=function(t,n){return xb(this.toString(),t,n)};String.prototype.positions=function(t,n){return yb(this.toString(),t,n)};String.prototype.matchStr=function(t){return zb(this.toString(),t)};String.prototype.matchAllStr=function(t){return Ab(this.toString(),t)};String.prototype.levenshtein=function(t){return La(this.toString(),t)};String.prototype.levenshteinRatio=function(t){return Ma(this.toString(),t)};String.prototype.dice=function(t){return Na(this.toString(),t)};String.prototype.jaroWinkler=function(t){return Oa(this.toString(),t)};String.prototype.hamming=function(t){return Pa(this.toString(),t)};String.prototype.cosine=function(t){return Qa(this.toString(),t)};String.prototype.similarity=function(t,n){return Ta(this.toString(),t,n)};String.prototype.diffChars=function(t){return lb(this.toString(),t)};String.prototype.diffWords=function(t){return mb(this.toString(),t)};String.prototype.diffLines=function(t){return nb(this.toString(),t)};String.prototype.diff=function(t,n){return ob(this.toString(),t,n)};String.prototype.pluralize=function(t,n){return eb(this.toString(),t,n)};String.prototype.singularize=function(){return fb(this.toString())};String.prototype.isPlural=function(){return gb(this.toString())};String.prototype.isSingular=function(){return hb(this.toString())};for(let t of Object.keys(String.prototype))Xt.has(t)||Object.defineProperty(String.prototype,t,{enumerable:false});//# sourceMappingURL=extend.mjs.map
|
|
2
2
|
//# sourceMappingURL=extend.mjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkJKMUUCWG_cjs=require('./chunk-JKMUUCWG.cjs');var Ot=class n{constructor(i){this._value=i;}_create(i){return new n(i)}get length(){return this._value.length}get s(){return this._value}get value(){return this._value}getValue(){return this._value}toString(){return this._value}clone(){return this._create(this._value)}camelCase(){return this._create(chunkJKMUUCWG_cjs.f(this._value))}kebabCase(){return this._create(chunkJKMUUCWG_cjs.g(this._value))}snakeCase(){return this._create(chunkJKMUUCWG_cjs.h(this._value))}pascalCase(){return this._create(chunkJKMUUCWG_cjs.i(this._value))}titleCase(){return this._create(chunkJKMUUCWG_cjs.j(this._value))}sentenceCase(){return this._create(chunkJKMUUCWG_cjs.k(this._value))}constantCase(){return this._create(chunkJKMUUCWG_cjs.l(this._value))}dotCase(){return this._create(chunkJKMUUCWG_cjs.m(this._value))}pathCase(){return this._create(chunkJKMUUCWG_cjs.n(this._value))}headerCase(){return this._create(chunkJKMUUCWG_cjs.o(this._value))}swapCase(){return this._create(chunkJKMUUCWG_cjs.p(this._value))}upper(){return this._create(chunkJKMUUCWG_cjs.q(this._value))}lower(){return this._create(chunkJKMUUCWG_cjs.r(this._value))}capitalize(){return this._create(chunkJKMUUCWG_cjs.s(this._value))}decapitalize(){return this._create(chunkJKMUUCWG_cjs.t(this._value))}trim(i){return this._create(chunkJKMUUCWG_cjs.u(this._value,i))}trimStart(i){return this._create(chunkJKMUUCWG_cjs.v(this._value,i))}trimEnd(i){return this._create(chunkJKMUUCWG_cjs.w(this._value,i))}pad(i,t){return this._create(chunkJKMUUCWG_cjs.x(this._value,i,t))}padStart(i,t){return this._create(chunkJKMUUCWG_cjs.y(this._value,i,t))}padEnd(i,t){return this._create(chunkJKMUUCWG_cjs.z(this._value,i,t))}repeat(i){return this._create(chunkJKMUUCWG_cjs.A(this._value,i))}reverse(){return this._create(chunkJKMUUCWG_cjs.B(this._value))}truncate(i,t){return this._create(chunkJKMUUCWG_cjs.C(this._value,i,t))}wrap(i,t){return this._create(chunkJKMUUCWG_cjs.D(this._value,i,t))}unwrap(i,t){return this._create(chunkJKMUUCWG_cjs.E(this._value,i,t))}insert(i,t){return this._create(chunkJKMUUCWG_cjs.G(this._value,i,t))}remove(i,t){return this._create(chunkJKMUUCWG_cjs.H(this._value,i,t))}replace(i,t){return this._create(chunkJKMUUCWG_cjs.I(this._value,i,t))}replaceAll(i,t){return this._create(chunkJKMUUCWG_cjs.J(this._value,i,t))}between(i,t){return this._create(chunkJKMUUCWG_cjs.K(this._value,i,t))}before(i){return this._create(chunkJKMUUCWG_cjs.L(this._value,i))}after(i){return this._create(chunkJKMUUCWG_cjs.M(this._value,i))}beforeLast(i){return this._create(chunkJKMUUCWG_cjs.N(this._value,i))}afterLast(i){return this._create(chunkJKMUUCWG_cjs.O(this._value,i))}append(...i){return this._create(chunkJKMUUCWG_cjs.P(this._value,...i))}prepend(...i){return this._create(chunkJKMUUCWG_cjs.Q(this._value,...i))}surround(i){return this._create(chunkJKMUUCWG_cjs.R(this._value,i))}collapseWhitespace(){return this._create(chunkJKMUUCWG_cjs.S(this._value))}escape(){return this._create(chunkJKMUUCWG_cjs.ra(this._value))}unescape(){return this._create(chunkJKMUUCWG_cjs.sa(this._value))}escapeHtml(){return this._create(chunkJKMUUCWG_cjs.ta(this._value))}unescapeHtml(){return this._create(chunkJKMUUCWG_cjs.ua(this._value))}escapeRegex(){return this._create(chunkJKMUUCWG_cjs.va(this._value))}slugify(i){return this._create(chunkJKMUUCWG_cjs.wa(this._value,i))}filename(){return this._create(chunkJKMUUCWG_cjs.xa(this._value))}stripHtml(){return this._create(chunkJKMUUCWG_cjs.ya(this._value))}stripTags(i){return this._create(chunkJKMUUCWG_cjs.za(this._value,i))}clean(){return this._create(chunkJKMUUCWG_cjs.Aa(this._value))}normalize(){return this._create(chunkJKMUUCWG_cjs.Ba(this._value))}latinise(){return this._create(chunkJKMUUCWG_cjs.Ca(this._value))}transliterate(i){return this._create(chunkJKMUUCWG_cjs.Da(this._value,i))}template(i,t){return this._create(chunkJKMUUCWG_cjs.Ea(this._value,i,t))}sprintf(...i){return this._create(chunkJKMUUCWG_cjs.Fa(this._value,...i))}mask(i){return this._create(chunkJKMUUCWG_cjs.Ga(this._value,i))}unmask(i){return this._create(chunkJKMUUCWG_cjs.Ha(this._value,i))}isEmail(){return chunkJKMUUCWG_cjs.W(this._value)}isUrl(){return chunkJKMUUCWG_cjs.X(this._value)}isUuid(i){return chunkJKMUUCWG_cjs.Y(this._value,i)}isIp(){return chunkJKMUUCWG_cjs.Z(this._value)}isIpv4(){return chunkJKMUUCWG_cjs._(this._value)}isIpv6(){return chunkJKMUUCWG_cjs.$(this._value)}isPhone(){return chunkJKMUUCWG_cjs.aa(this._value)}isCreditCard(){return chunkJKMUUCWG_cjs.ba(this._value)}isEmpty(){return chunkJKMUUCWG_cjs.ca(this._value)}isBlank(){return chunkJKMUUCWG_cjs.da(this._value)}isAlpha(){return chunkJKMUUCWG_cjs.ea(this._value)}isNumeric(){return chunkJKMUUCWG_cjs.fa(this._value)}isAlphanumeric(){return chunkJKMUUCWG_cjs.ga(this._value)}isHex(){return chunkJKMUUCWG_cjs.ha(this._value)}isBase64(){return chunkJKMUUCWG_cjs.ia(this._value)}isJson(){return chunkJKMUUCWG_cjs.ja(this._value)}isUpperCase(){return chunkJKMUUCWG_cjs.ka(this._value)}isLowerCase(){return chunkJKMUUCWG_cjs.la(this._value)}wordCount(){return chunkJKMUUCWG_cjs.Wa(this._value)}charCount(i){return chunkJKMUUCWG_cjs.Xa(this._value,i)}lineCount(){return chunkJKMUUCWG_cjs.Ya(this._value)}sentenceCount(){return chunkJKMUUCWG_cjs.Za(this._value)}paragraphCount(){return chunkJKMUUCWG_cjs._a(this._value)}byteSize(){return chunkJKMUUCWG_cjs.$a(this._value)}entropy(){return chunkJKMUUCWG_cjs.ab(this._value)}frequency(i){return chunkJKMUUCWG_cjs.bb(this._value,i)}readingTime(i){return chunkJKMUUCWG_cjs.cb(this._value,i)}speakingTime(i){return chunkJKMUUCWG_cjs.db(this._value,i)}contains(i,t){return chunkJKMUUCWG_cjs.sb(this._value,i,t)}startsWith(i){return chunkJKMUUCWG_cjs.tb(this._value,i)}endsWith(i){return chunkJKMUUCWG_cjs.ub(this._value,i)}indexOf(i,t){return chunkJKMUUCWG_cjs.vb(this._value,i,t)}lastIndexOf(i,t){return chunkJKMUUCWG_cjs.wb(this._value,i,t)}countOccurrences(i,t){return chunkJKMUUCWG_cjs.xb(this._value,i,t)}positions(i,t){return chunkJKMUUCWG_cjs.yb(this._value,i,t)}match(i){return chunkJKMUUCWG_cjs.zb(this._value,i)}matchAll(i){return chunkJKMUUCWG_cjs.Ab(this._value,i)}levenshtein(i){return chunkJKMUUCWG_cjs.La(this._value,i)}levenshteinRatio(i){return chunkJKMUUCWG_cjs.Ma(this._value,i)}dice(i){return chunkJKMUUCWG_cjs.Na(this._value,i)}jaroWinkler(i){return chunkJKMUUCWG_cjs.Oa(this._value,i)}hamming(i){return chunkJKMUUCWG_cjs.Pa(this._value,i)}cosine(i){return chunkJKMUUCWG_cjs.Qa(this._value,i)}similarity(i,t){return chunkJKMUUCWG_cjs.Ta(this._value,i,t)}diffChars(i){return chunkJKMUUCWG_cjs.lb(this._value,i)}diffWords(i){return chunkJKMUUCWG_cjs.mb(this._value,i)}diffLines(i){return chunkJKMUUCWG_cjs.nb(this._value,i)}diff(i,t){return chunkJKMUUCWG_cjs.ob(this._value,i,t)}plural(i,t){return this._create(chunkJKMUUCWG_cjs.eb(this._value,i,t))}singular(){return this._create(chunkJKMUUCWG_cjs.fb(this._value))}isPlural(){return chunkJKMUUCWG_cjs.gb(this._value)}isSingular(){return chunkJKMUUCWG_cjs.hb(this._value)}lines(){return chunkJKMUUCWG_cjs.T(this._value)}words(){return chunkJKMUUCWG_cjs.U(this._value)}chars(){return chunkJKMUUCWG_cjs.V(this._value)}};function Vt(n){return new Ot(n)}var st={case:{camel:chunkJKMUUCWG_cjs.f,kebab:chunkJKMUUCWG_cjs.g,snake:chunkJKMUUCWG_cjs.h,pascal:chunkJKMUUCWG_cjs.i,title:chunkJKMUUCWG_cjs.j,sentence:chunkJKMUUCWG_cjs.k,constant:chunkJKMUUCWG_cjs.l,dot:chunkJKMUUCWG_cjs.m,path:chunkJKMUUCWG_cjs.n,header:chunkJKMUUCWG_cjs.o,swap:chunkJKMUUCWG_cjs.p,upper:chunkJKMUUCWG_cjs.q,lower:chunkJKMUUCWG_cjs.r,capitalize:chunkJKMUUCWG_cjs.s,decapitalize:chunkJKMUUCWG_cjs.t},manipulation:{trim:chunkJKMUUCWG_cjs.u,trimStart:chunkJKMUUCWG_cjs.v,trimEnd:chunkJKMUUCWG_cjs.w,pad:chunkJKMUUCWG_cjs.x,padStart:chunkJKMUUCWG_cjs.y,padEnd:chunkJKMUUCWG_cjs.z,repeat:chunkJKMUUCWG_cjs.A,reverse:chunkJKMUUCWG_cjs.B,truncate:chunkJKMUUCWG_cjs.C,wrap:chunkJKMUUCWG_cjs.D,unwrap:chunkJKMUUCWG_cjs.E,splice:chunkJKMUUCWG_cjs.F,insert:chunkJKMUUCWG_cjs.G,remove:chunkJKMUUCWG_cjs.H,replace:chunkJKMUUCWG_cjs.I,replaceAll:chunkJKMUUCWG_cjs.J,between:chunkJKMUUCWG_cjs.K,before:chunkJKMUUCWG_cjs.L,after:chunkJKMUUCWG_cjs.M,beforeLast:chunkJKMUUCWG_cjs.N,afterLast:chunkJKMUUCWG_cjs.O,append:chunkJKMUUCWG_cjs.P,prepend:chunkJKMUUCWG_cjs.Q,surround:chunkJKMUUCWG_cjs.R,collapseWhitespace:chunkJKMUUCWG_cjs.S,lines:chunkJKMUUCWG_cjs.T,words:chunkJKMUUCWG_cjs.U,chars:chunkJKMUUCWG_cjs.V},validate:{email:chunkJKMUUCWG_cjs.W,url:chunkJKMUUCWG_cjs.X,uuid:chunkJKMUUCWG_cjs.Y,ip:chunkJKMUUCWG_cjs.Z,ipv4:chunkJKMUUCWG_cjs._,ipv6:chunkJKMUUCWG_cjs.$,phone:chunkJKMUUCWG_cjs.aa,creditCard:chunkJKMUUCWG_cjs.ba,empty:chunkJKMUUCWG_cjs.ca,blank:chunkJKMUUCWG_cjs.da,alpha:chunkJKMUUCWG_cjs.ea,numeric:chunkJKMUUCWG_cjs.fa,alphanumeric:chunkJKMUUCWG_cjs.ga,hex:chunkJKMUUCWG_cjs.ha,base64:chunkJKMUUCWG_cjs.ia,json:chunkJKMUUCWG_cjs.ja,upperCase:chunkJKMUUCWG_cjs.ka,lowerCase:chunkJKMUUCWG_cjs.la,contains:chunkJKMUUCWG_cjs.ma,startsWith:chunkJKMUUCWG_cjs.na,endsWith:chunkJKMUUCWG_cjs.oa,equals:chunkJKMUUCWG_cjs.pa,matches:chunkJKMUUCWG_cjs.qa},sanitize:{escape:chunkJKMUUCWG_cjs.ra,unescape:chunkJKMUUCWG_cjs.sa,escapeHtml:chunkJKMUUCWG_cjs.ta,unescapeHtml:chunkJKMUUCWG_cjs.ua,escapeRegex:chunkJKMUUCWG_cjs.va,slugify:chunkJKMUUCWG_cjs.wa,filename:chunkJKMUUCWG_cjs.xa,stripHtml:chunkJKMUUCWG_cjs.ya,stripTags:chunkJKMUUCWG_cjs.za,clean:chunkJKMUUCWG_cjs.Aa,normalize:chunkJKMUUCWG_cjs.Ba,latinise:chunkJKMUUCWG_cjs.Ca,transliterate:chunkJKMUUCWG_cjs.Da},format:{template:chunkJKMUUCWG_cjs.Ea,sprintf:chunkJKMUUCWG_cjs.Fa,mask:chunkJKMUUCWG_cjs.Ga,unmask:chunkJKMUUCWG_cjs.Ha,ordinalize:chunkJKMUUCWG_cjs.Ia,currency:chunkJKMUUCWG_cjs.Ja,number:chunkJKMUUCWG_cjs.Ka},similarity:{levenshtein:chunkJKMUUCWG_cjs.La,levenshteinRatio:chunkJKMUUCWG_cjs.Ma,dice:chunkJKMUUCWG_cjs.Na,jaroWinkler:chunkJKMUUCWG_cjs.Oa,hamming:chunkJKMUUCWG_cjs.Pa,cosine:chunkJKMUUCWG_cjs.Qa,lcs:chunkJKMUUCWG_cjs.Ra,lcsLength:chunkJKMUUCWG_cjs.Sa,similarity:chunkJKMUUCWG_cjs.Ta,bestMatch:chunkJKMUUCWG_cjs.Ua,findSimilar:chunkJKMUUCWG_cjs.Va},analysis:{wordCount:chunkJKMUUCWG_cjs.Wa,charCount:chunkJKMUUCWG_cjs.Xa,lineCount:chunkJKMUUCWG_cjs.Ya,sentenceCount:chunkJKMUUCWG_cjs.Za,paragraphCount:chunkJKMUUCWG_cjs._a,byteSize:chunkJKMUUCWG_cjs.$a,entropy:chunkJKMUUCWG_cjs.ab,frequency:chunkJKMUUCWG_cjs.bb,readingTime:chunkJKMUUCWG_cjs.cb,speakingTime:chunkJKMUUCWG_cjs.db},plural:{plural:chunkJKMUUCWG_cjs.eb,singular:chunkJKMUUCWG_cjs.fb,isPlural:chunkJKMUUCWG_cjs.gb,isSingular:chunkJKMUUCWG_cjs.hb,addRule:chunkJKMUUCWG_cjs.ib,addIrregular:chunkJKMUUCWG_cjs.jb,addUncountable:chunkJKMUUCWG_cjs.kb},diff:{diff:chunkJKMUUCWG_cjs.ob,diffChars:chunkJKMUUCWG_cjs.lb,diffWords:chunkJKMUUCWG_cjs.mb,diffLines:chunkJKMUUCWG_cjs.nb,createPatch:chunkJKMUUCWG_cjs.pb,applyPatch:chunkJKMUUCWG_cjs.qb,reversePatch:chunkJKMUUCWG_cjs.rb},search:{contains:chunkJKMUUCWG_cjs.sb,startsWith:chunkJKMUUCWG_cjs.tb,endsWith:chunkJKMUUCWG_cjs.ub,indexOf:chunkJKMUUCWG_cjs.vb,lastIndexOf:chunkJKMUUCWG_cjs.wb,countOccurrences:chunkJKMUUCWG_cjs.xb,positions:chunkJKMUUCWG_cjs.yb,match:chunkJKMUUCWG_cjs.zb,matchAll:chunkJKMUUCWG_cjs.Ab,extract:chunkJKMUUCWG_cjs.Bb,extractAll:chunkJKMUUCWG_cjs.Cb}};var Gt=new Set(["__proto__","prototype","constructor"]),kt=class{constructor(){this.plugins=new Map;this.methods=new Map;this.config={locale:"en"};}register(i){this.validatePlugin(i),this.checkDependencies(i),this.plugins.set(i.name,i);for(let[t,Lt]of Object.entries(i.methods)){let Wt=`${i.name}.${t}`;this.methods.set(Wt,Lt);}Object.defineProperty(st,i.name,{value:i.methods,enumerable:true,configurable:true,writable:false}),i.init&&i.init(this);}getMethod(i){return this.methods.get(i)}getPluginMethods(i){let t=this.plugins.get(i);return t?t.methods:{}}hasPlugin(i){return this.plugins.has(i)}getPlugins(){return Array.from(this.plugins.values())}getLocale(){return this.config.locale}setLocale(i){this.config.locale=i,chunkJKMUUCWG_cjs.a.setLocale(i);}validatePlugin(i){if(!i.name)throw new Error("Plugin must have a name");if(!i.version)throw new Error(`Plugin '${i.name}' must have a version`);if(!i.methods||typeof i.methods!="object")throw new Error(`Plugin '${i.name}' must have a methods object`);if(this.plugins.has(i.name))throw new Error(`Plugin '${i.name}' is already registered`);if(Gt.has(i.name)||Object.prototype.hasOwnProperty.call(st,i.name))throw new Error(`Plugin name '${i.name}' is reserved (it would replace a built-in str.* namespace)`)}checkDependencies(i){if(i.dependencies){for(let t of i.dependencies)if(!this.plugins.has(t))throw new Error(`Plugin '${i.name}' depends on '${t}' which is not registered`)}}},Rt=new kt;function Qt(n){Rt.register(n);}function Xt(){return Rt.getPlugins()}function Yt(n){return Rt.hasPlugin(n)}/**
|
|
1
|
+
'use strict';var chunk7GAPT34Z_cjs=require('./chunk-7GAPT34Z.cjs');var Ot=class n{constructor(i){this._value=i;}_create(i){return new n(i)}get length(){return this._value.length}get s(){return this._value}get value(){return this._value}getValue(){return this._value}toString(){return this._value}clone(){return this._create(this._value)}camelCase(){return this._create(chunk7GAPT34Z_cjs.f(this._value))}kebabCase(){return this._create(chunk7GAPT34Z_cjs.g(this._value))}snakeCase(){return this._create(chunk7GAPT34Z_cjs.h(this._value))}pascalCase(){return this._create(chunk7GAPT34Z_cjs.i(this._value))}titleCase(){return this._create(chunk7GAPT34Z_cjs.j(this._value))}sentenceCase(){return this._create(chunk7GAPT34Z_cjs.k(this._value))}constantCase(){return this._create(chunk7GAPT34Z_cjs.l(this._value))}dotCase(){return this._create(chunk7GAPT34Z_cjs.m(this._value))}pathCase(){return this._create(chunk7GAPT34Z_cjs.n(this._value))}headerCase(){return this._create(chunk7GAPT34Z_cjs.o(this._value))}swapCase(){return this._create(chunk7GAPT34Z_cjs.p(this._value))}upper(){return this._create(chunk7GAPT34Z_cjs.q(this._value))}lower(){return this._create(chunk7GAPT34Z_cjs.r(this._value))}capitalize(){return this._create(chunk7GAPT34Z_cjs.s(this._value))}decapitalize(){return this._create(chunk7GAPT34Z_cjs.t(this._value))}trim(i){return this._create(chunk7GAPT34Z_cjs.u(this._value,i))}trimStart(i){return this._create(chunk7GAPT34Z_cjs.v(this._value,i))}trimEnd(i){return this._create(chunk7GAPT34Z_cjs.w(this._value,i))}pad(i,t){return this._create(chunk7GAPT34Z_cjs.x(this._value,i,t))}padStart(i,t){return this._create(chunk7GAPT34Z_cjs.y(this._value,i,t))}padEnd(i,t){return this._create(chunk7GAPT34Z_cjs.z(this._value,i,t))}repeat(i){return this._create(chunk7GAPT34Z_cjs.A(this._value,i))}reverse(){return this._create(chunk7GAPT34Z_cjs.B(this._value))}truncate(i,t){return this._create(chunk7GAPT34Z_cjs.C(this._value,i,t))}wrap(i,t){return this._create(chunk7GAPT34Z_cjs.D(this._value,i,t))}unwrap(i,t){return this._create(chunk7GAPT34Z_cjs.E(this._value,i,t))}insert(i,t){return this._create(chunk7GAPT34Z_cjs.G(this._value,i,t))}remove(i,t){return this._create(chunk7GAPT34Z_cjs.H(this._value,i,t))}replace(i,t){return this._create(chunk7GAPT34Z_cjs.I(this._value,i,t))}replaceAll(i,t){return this._create(chunk7GAPT34Z_cjs.J(this._value,i,t))}between(i,t){return this._create(chunk7GAPT34Z_cjs.K(this._value,i,t))}before(i){return this._create(chunk7GAPT34Z_cjs.L(this._value,i))}after(i){return this._create(chunk7GAPT34Z_cjs.M(this._value,i))}beforeLast(i){return this._create(chunk7GAPT34Z_cjs.N(this._value,i))}afterLast(i){return this._create(chunk7GAPT34Z_cjs.O(this._value,i))}append(...i){return this._create(chunk7GAPT34Z_cjs.P(this._value,...i))}prepend(...i){return this._create(chunk7GAPT34Z_cjs.Q(this._value,...i))}surround(i){return this._create(chunk7GAPT34Z_cjs.R(this._value,i))}collapseWhitespace(){return this._create(chunk7GAPT34Z_cjs.S(this._value))}escape(){return this._create(chunk7GAPT34Z_cjs.ra(this._value))}unescape(){return this._create(chunk7GAPT34Z_cjs.sa(this._value))}escapeHtml(){return this._create(chunk7GAPT34Z_cjs.ta(this._value))}unescapeHtml(){return this._create(chunk7GAPT34Z_cjs.ua(this._value))}escapeRegex(){return this._create(chunk7GAPT34Z_cjs.va(this._value))}slugify(i){return this._create(chunk7GAPT34Z_cjs.wa(this._value,i))}filename(){return this._create(chunk7GAPT34Z_cjs.xa(this._value))}stripHtml(){return this._create(chunk7GAPT34Z_cjs.ya(this._value))}stripTags(i){return this._create(chunk7GAPT34Z_cjs.za(this._value,i))}clean(){return this._create(chunk7GAPT34Z_cjs.Aa(this._value))}normalize(){return this._create(chunk7GAPT34Z_cjs.Ba(this._value))}latinise(){return this._create(chunk7GAPT34Z_cjs.Ca(this._value))}transliterate(i){return this._create(chunk7GAPT34Z_cjs.Da(this._value,i))}template(i,t){return this._create(chunk7GAPT34Z_cjs.Ea(this._value,i,t))}sprintf(...i){return this._create(chunk7GAPT34Z_cjs.Fa(this._value,...i))}mask(i){return this._create(chunk7GAPT34Z_cjs.Ga(this._value,i))}unmask(i){return this._create(chunk7GAPT34Z_cjs.Ha(this._value,i))}isEmail(){return chunk7GAPT34Z_cjs.W(this._value)}isUrl(){return chunk7GAPT34Z_cjs.X(this._value)}isUuid(i){return chunk7GAPT34Z_cjs.Y(this._value,i)}isIp(){return chunk7GAPT34Z_cjs.Z(this._value)}isIpv4(){return chunk7GAPT34Z_cjs._(this._value)}isIpv6(){return chunk7GAPT34Z_cjs.$(this._value)}isPhone(){return chunk7GAPT34Z_cjs.aa(this._value)}isCreditCard(){return chunk7GAPT34Z_cjs.ba(this._value)}isEmpty(){return chunk7GAPT34Z_cjs.ca(this._value)}isBlank(){return chunk7GAPT34Z_cjs.da(this._value)}isAlpha(){return chunk7GAPT34Z_cjs.ea(this._value)}isNumeric(){return chunk7GAPT34Z_cjs.fa(this._value)}isAlphanumeric(){return chunk7GAPT34Z_cjs.ga(this._value)}isHex(){return chunk7GAPT34Z_cjs.ha(this._value)}isBase64(){return chunk7GAPT34Z_cjs.ia(this._value)}isJson(){return chunk7GAPT34Z_cjs.ja(this._value)}isUpperCase(){return chunk7GAPT34Z_cjs.ka(this._value)}isLowerCase(){return chunk7GAPT34Z_cjs.la(this._value)}wordCount(){return chunk7GAPT34Z_cjs.Wa(this._value)}charCount(i){return chunk7GAPT34Z_cjs.Xa(this._value,i)}lineCount(){return chunk7GAPT34Z_cjs.Ya(this._value)}sentenceCount(){return chunk7GAPT34Z_cjs.Za(this._value)}paragraphCount(){return chunk7GAPT34Z_cjs._a(this._value)}byteSize(){return chunk7GAPT34Z_cjs.$a(this._value)}entropy(){return chunk7GAPT34Z_cjs.ab(this._value)}frequency(i){return chunk7GAPT34Z_cjs.bb(this._value,i)}readingTime(i){return chunk7GAPT34Z_cjs.cb(this._value,i)}speakingTime(i){return chunk7GAPT34Z_cjs.db(this._value,i)}contains(i,t){return chunk7GAPT34Z_cjs.sb(this._value,i,t)}startsWith(i){return chunk7GAPT34Z_cjs.tb(this._value,i)}endsWith(i){return chunk7GAPT34Z_cjs.ub(this._value,i)}indexOf(i,t){return chunk7GAPT34Z_cjs.vb(this._value,i,t)}lastIndexOf(i,t){return chunk7GAPT34Z_cjs.wb(this._value,i,t)}countOccurrences(i,t){return chunk7GAPT34Z_cjs.xb(this._value,i,t)}positions(i,t){return chunk7GAPT34Z_cjs.yb(this._value,i,t)}match(i){return chunk7GAPT34Z_cjs.zb(this._value,i)}matchAll(i){return chunk7GAPT34Z_cjs.Ab(this._value,i)}levenshtein(i){return chunk7GAPT34Z_cjs.La(this._value,i)}levenshteinRatio(i){return chunk7GAPT34Z_cjs.Ma(this._value,i)}dice(i){return chunk7GAPT34Z_cjs.Na(this._value,i)}jaroWinkler(i){return chunk7GAPT34Z_cjs.Oa(this._value,i)}hamming(i){return chunk7GAPT34Z_cjs.Pa(this._value,i)}cosine(i){return chunk7GAPT34Z_cjs.Qa(this._value,i)}similarity(i,t){return chunk7GAPT34Z_cjs.Ta(this._value,i,t)}diffChars(i){return chunk7GAPT34Z_cjs.lb(this._value,i)}diffWords(i){return chunk7GAPT34Z_cjs.mb(this._value,i)}diffLines(i){return chunk7GAPT34Z_cjs.nb(this._value,i)}diff(i,t){return chunk7GAPT34Z_cjs.ob(this._value,i,t)}plural(i,t){return this._create(chunk7GAPT34Z_cjs.eb(this._value,i,t))}singular(){return this._create(chunk7GAPT34Z_cjs.fb(this._value))}isPlural(){return chunk7GAPT34Z_cjs.gb(this._value)}isSingular(){return chunk7GAPT34Z_cjs.hb(this._value)}lines(){return chunk7GAPT34Z_cjs.T(this._value)}words(){return chunk7GAPT34Z_cjs.U(this._value)}chars(){return chunk7GAPT34Z_cjs.V(this._value)}};function Vt(n){return new Ot(n)}var st={case:{camel:chunk7GAPT34Z_cjs.f,kebab:chunk7GAPT34Z_cjs.g,snake:chunk7GAPT34Z_cjs.h,pascal:chunk7GAPT34Z_cjs.i,title:chunk7GAPT34Z_cjs.j,sentence:chunk7GAPT34Z_cjs.k,constant:chunk7GAPT34Z_cjs.l,dot:chunk7GAPT34Z_cjs.m,path:chunk7GAPT34Z_cjs.n,header:chunk7GAPT34Z_cjs.o,swap:chunk7GAPT34Z_cjs.p,upper:chunk7GAPT34Z_cjs.q,lower:chunk7GAPT34Z_cjs.r,capitalize:chunk7GAPT34Z_cjs.s,decapitalize:chunk7GAPT34Z_cjs.t},manipulation:{trim:chunk7GAPT34Z_cjs.u,trimStart:chunk7GAPT34Z_cjs.v,trimEnd:chunk7GAPT34Z_cjs.w,pad:chunk7GAPT34Z_cjs.x,padStart:chunk7GAPT34Z_cjs.y,padEnd:chunk7GAPT34Z_cjs.z,repeat:chunk7GAPT34Z_cjs.A,reverse:chunk7GAPT34Z_cjs.B,truncate:chunk7GAPT34Z_cjs.C,wrap:chunk7GAPT34Z_cjs.D,unwrap:chunk7GAPT34Z_cjs.E,splice:chunk7GAPT34Z_cjs.F,insert:chunk7GAPT34Z_cjs.G,remove:chunk7GAPT34Z_cjs.H,replace:chunk7GAPT34Z_cjs.I,replaceAll:chunk7GAPT34Z_cjs.J,between:chunk7GAPT34Z_cjs.K,before:chunk7GAPT34Z_cjs.L,after:chunk7GAPT34Z_cjs.M,beforeLast:chunk7GAPT34Z_cjs.N,afterLast:chunk7GAPT34Z_cjs.O,append:chunk7GAPT34Z_cjs.P,prepend:chunk7GAPT34Z_cjs.Q,surround:chunk7GAPT34Z_cjs.R,collapseWhitespace:chunk7GAPT34Z_cjs.S,lines:chunk7GAPT34Z_cjs.T,words:chunk7GAPT34Z_cjs.U,chars:chunk7GAPT34Z_cjs.V},validate:{email:chunk7GAPT34Z_cjs.W,url:chunk7GAPT34Z_cjs.X,uuid:chunk7GAPT34Z_cjs.Y,ip:chunk7GAPT34Z_cjs.Z,ipv4:chunk7GAPT34Z_cjs._,ipv6:chunk7GAPT34Z_cjs.$,phone:chunk7GAPT34Z_cjs.aa,creditCard:chunk7GAPT34Z_cjs.ba,empty:chunk7GAPT34Z_cjs.ca,blank:chunk7GAPT34Z_cjs.da,alpha:chunk7GAPT34Z_cjs.ea,numeric:chunk7GAPT34Z_cjs.fa,alphanumeric:chunk7GAPT34Z_cjs.ga,hex:chunk7GAPT34Z_cjs.ha,base64:chunk7GAPT34Z_cjs.ia,json:chunk7GAPT34Z_cjs.ja,upperCase:chunk7GAPT34Z_cjs.ka,lowerCase:chunk7GAPT34Z_cjs.la,contains:chunk7GAPT34Z_cjs.ma,startsWith:chunk7GAPT34Z_cjs.na,endsWith:chunk7GAPT34Z_cjs.oa,equals:chunk7GAPT34Z_cjs.pa,matches:chunk7GAPT34Z_cjs.qa},sanitize:{escape:chunk7GAPT34Z_cjs.ra,unescape:chunk7GAPT34Z_cjs.sa,escapeHtml:chunk7GAPT34Z_cjs.ta,unescapeHtml:chunk7GAPT34Z_cjs.ua,escapeRegex:chunk7GAPT34Z_cjs.va,slugify:chunk7GAPT34Z_cjs.wa,filename:chunk7GAPT34Z_cjs.xa,stripHtml:chunk7GAPT34Z_cjs.ya,stripTags:chunk7GAPT34Z_cjs.za,clean:chunk7GAPT34Z_cjs.Aa,normalize:chunk7GAPT34Z_cjs.Ba,latinise:chunk7GAPT34Z_cjs.Ca,transliterate:chunk7GAPT34Z_cjs.Da},format:{template:chunk7GAPT34Z_cjs.Ea,sprintf:chunk7GAPT34Z_cjs.Fa,mask:chunk7GAPT34Z_cjs.Ga,unmask:chunk7GAPT34Z_cjs.Ha,ordinalize:chunk7GAPT34Z_cjs.Ia,currency:chunk7GAPT34Z_cjs.Ja,number:chunk7GAPT34Z_cjs.Ka},similarity:{levenshtein:chunk7GAPT34Z_cjs.La,levenshteinRatio:chunk7GAPT34Z_cjs.Ma,dice:chunk7GAPT34Z_cjs.Na,jaroWinkler:chunk7GAPT34Z_cjs.Oa,hamming:chunk7GAPT34Z_cjs.Pa,cosine:chunk7GAPT34Z_cjs.Qa,lcs:chunk7GAPT34Z_cjs.Ra,lcsLength:chunk7GAPT34Z_cjs.Sa,similarity:chunk7GAPT34Z_cjs.Ta,bestMatch:chunk7GAPT34Z_cjs.Ua,findSimilar:chunk7GAPT34Z_cjs.Va},analysis:{wordCount:chunk7GAPT34Z_cjs.Wa,charCount:chunk7GAPT34Z_cjs.Xa,lineCount:chunk7GAPT34Z_cjs.Ya,sentenceCount:chunk7GAPT34Z_cjs.Za,paragraphCount:chunk7GAPT34Z_cjs._a,byteSize:chunk7GAPT34Z_cjs.$a,entropy:chunk7GAPT34Z_cjs.ab,frequency:chunk7GAPT34Z_cjs.bb,readingTime:chunk7GAPT34Z_cjs.cb,speakingTime:chunk7GAPT34Z_cjs.db},plural:{plural:chunk7GAPT34Z_cjs.eb,singular:chunk7GAPT34Z_cjs.fb,isPlural:chunk7GAPT34Z_cjs.gb,isSingular:chunk7GAPT34Z_cjs.hb,addRule:chunk7GAPT34Z_cjs.ib,addIrregular:chunk7GAPT34Z_cjs.jb,addUncountable:chunk7GAPT34Z_cjs.kb},diff:{diff:chunk7GAPT34Z_cjs.ob,diffChars:chunk7GAPT34Z_cjs.lb,diffWords:chunk7GAPT34Z_cjs.mb,diffLines:chunk7GAPT34Z_cjs.nb,createPatch:chunk7GAPT34Z_cjs.pb,applyPatch:chunk7GAPT34Z_cjs.qb,reversePatch:chunk7GAPT34Z_cjs.rb},search:{contains:chunk7GAPT34Z_cjs.sb,startsWith:chunk7GAPT34Z_cjs.tb,endsWith:chunk7GAPT34Z_cjs.ub,indexOf:chunk7GAPT34Z_cjs.vb,lastIndexOf:chunk7GAPT34Z_cjs.wb,countOccurrences:chunk7GAPT34Z_cjs.xb,positions:chunk7GAPT34Z_cjs.yb,match:chunk7GAPT34Z_cjs.zb,matchAll:chunk7GAPT34Z_cjs.Ab,extract:chunk7GAPT34Z_cjs.Bb,extractAll:chunk7GAPT34Z_cjs.Cb}};var Gt=new Set(["__proto__","prototype","constructor"]),kt=class{constructor(){this.plugins=new Map;this.methods=new Map;this.config={locale:"en"};}register(i){this.validatePlugin(i),this.checkDependencies(i),this.plugins.set(i.name,i);for(let[t,Lt]of Object.entries(i.methods)){let Wt=`${i.name}.${t}`;this.methods.set(Wt,Lt);}Object.defineProperty(st,i.name,{value:i.methods,enumerable:true,configurable:true,writable:false}),i.init&&i.init(this);}getMethod(i){return this.methods.get(i)}getPluginMethods(i){let t=this.plugins.get(i);return t?t.methods:{}}hasPlugin(i){return this.plugins.has(i)}getPlugins(){return Array.from(this.plugins.values())}getLocale(){return this.config.locale}setLocale(i){this.config.locale=i,chunk7GAPT34Z_cjs.a.setLocale(i);}validatePlugin(i){if(!i.name)throw new Error("Plugin must have a name");if(!i.version)throw new Error(`Plugin '${i.name}' must have a version`);if(!i.methods||typeof i.methods!="object")throw new Error(`Plugin '${i.name}' must have a methods object`);if(this.plugins.has(i.name))throw new Error(`Plugin '${i.name}' is already registered`);if(Gt.has(i.name)||Object.prototype.hasOwnProperty.call(st,i.name))throw new Error(`Plugin name '${i.name}' is reserved (it would replace a built-in str.* namespace)`)}checkDependencies(i){if(i.dependencies){for(let t of i.dependencies)if(!this.plugins.has(t))throw new Error(`Plugin '${i.name}' depends on '${t}' which is not registered`)}}},Rt=new kt;function Qt(n){Rt.register(n);}function Xt(){return Rt.getPlugins()}function Yt(n){return Rt.hasPlugin(n)}/**
|
|
2
2
|
* @oxog/strkit - Zero-Dependency String Toolkit
|
|
3
3
|
*
|
|
4
4
|
* The ultimate string manipulation toolkit for JavaScript/TypeScript.
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @see https://strkit.oxog.dev
|
|
10
10
|
* @see https://github.com/ersinkoc/strkit
|
|
11
|
-
*/Object.defineProperty(exports,"addIrregular",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.jb}});Object.defineProperty(exports,"addPluralRule",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ib}});Object.defineProperty(exports,"addUncountable",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.kb}});Object.defineProperty(exports,"after",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.M}});Object.defineProperty(exports,"afterLast",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.O}});Object.defineProperty(exports,"append",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.P}});Object.defineProperty(exports,"applyPatch",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.qb}});Object.defineProperty(exports,"before",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.L}});Object.defineProperty(exports,"beforeLast",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.N}});Object.defineProperty(exports,"bestMatch",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ua}});Object.defineProperty(exports,"between",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.K}});Object.defineProperty(exports,"byteSize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.$a}});Object.defineProperty(exports,"camelCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.f}});Object.defineProperty(exports,"capitalize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.s}});Object.defineProperty(exports,"charCount",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Xa}});Object.defineProperty(exports,"chars",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.V}});Object.defineProperty(exports,"clean",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Aa}});Object.defineProperty(exports,"collapseWhitespace",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.S}});Object.defineProperty(exports,"constantCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.l}});Object.defineProperty(exports,"contains",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ma}});Object.defineProperty(exports,"cosine",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Qa}});Object.defineProperty(exports,"countOccurrences",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.xb}});Object.defineProperty(exports,"createPatch",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.pb}});Object.defineProperty(exports,"decapitalize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.t}});Object.defineProperty(exports,"dice",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Na}});Object.defineProperty(exports,"diff",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ob}});Object.defineProperty(exports,"diffChars",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.lb}});Object.defineProperty(exports,"diffLines",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.nb}});Object.defineProperty(exports,"diffWords",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.mb}});Object.defineProperty(exports,"dotCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.m}});Object.defineProperty(exports,"endsWith",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.oa}});Object.defineProperty(exports,"entropy",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ab}});Object.defineProperty(exports,"equals",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.pa}});Object.defineProperty(exports,"escape",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ra}});Object.defineProperty(exports,"escapeHtml",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ta}});Object.defineProperty(exports,"escapeRegex",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.va}});Object.defineProperty(exports,"extract",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Bb}});Object.defineProperty(exports,"extractAll",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Cb}});Object.defineProperty(exports,"findSimilar",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Va}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ja}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ka}});Object.defineProperty(exports,"frequency",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.bb}});Object.defineProperty(exports,"getAvailableLocales",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.e}});Object.defineProperty(exports,"getLocale",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.c}});Object.defineProperty(exports,"hamming",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Pa}});Object.defineProperty(exports,"headerCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.o}});Object.defineProperty(exports,"indexOf",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.vb}});Object.defineProperty(exports,"insert",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.G}});Object.defineProperty(exports,"isAlpha",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ea}});Object.defineProperty(exports,"isAlphanumeric",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ga}});Object.defineProperty(exports,"isBase64",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ia}});Object.defineProperty(exports,"isBlank",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.da}});Object.defineProperty(exports,"isCreditCard",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ba}});Object.defineProperty(exports,"isEmail",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.W}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ca}});Object.defineProperty(exports,"isHex",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ha}});Object.defineProperty(exports,"isIp",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Z}});Object.defineProperty(exports,"isIpv4",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs._}});Object.defineProperty(exports,"isIpv6",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.$}});Object.defineProperty(exports,"isJson",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ja}});Object.defineProperty(exports,"isLowerCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.la}});Object.defineProperty(exports,"isNumeric",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.fa}});Object.defineProperty(exports,"isPhone",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.aa}});Object.defineProperty(exports,"isPlural",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.gb}});Object.defineProperty(exports,"isSingular",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.hb}});Object.defineProperty(exports,"isUpperCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ka}});Object.defineProperty(exports,"isUrl",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.X}});Object.defineProperty(exports,"isUuid",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Y}});Object.defineProperty(exports,"jaroWinkler",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Oa}});Object.defineProperty(exports,"kebabCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.g}});Object.defineProperty(exports,"lastIndexOf",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.wb}});Object.defineProperty(exports,"latinise",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ca}});Object.defineProperty(exports,"lcs",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ra}});Object.defineProperty(exports,"lcsLength",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Sa}});Object.defineProperty(exports,"levenshtein",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.La}});Object.defineProperty(exports,"levenshteinRatio",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ma}});Object.defineProperty(exports,"lineCount",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ya}});Object.defineProperty(exports,"lines",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.T}});Object.defineProperty(exports,"mask",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ga}});Object.defineProperty(exports,"match",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.zb}});Object.defineProperty(exports,"matchAll",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ab}});Object.defineProperty(exports,"matches",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.qa}});Object.defineProperty(exports,"normalize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ba}});Object.defineProperty(exports,"ordinalize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ia}});Object.defineProperty(exports,"pad",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.x}});Object.defineProperty(exports,"padEnd",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.z}});Object.defineProperty(exports,"padStart",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.y}});Object.defineProperty(exports,"paragraphCount",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs._a}});Object.defineProperty(exports,"pascalCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.i}});Object.defineProperty(exports,"pathCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.n}});Object.defineProperty(exports,"pluralize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.eb}});Object.defineProperty(exports,"positions",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.yb}});Object.defineProperty(exports,"prepend",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Q}});Object.defineProperty(exports,"readingTime",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.cb}});Object.defineProperty(exports,"registerLocale",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.d}});Object.defineProperty(exports,"remove",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.H}});Object.defineProperty(exports,"repeat",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.A}});Object.defineProperty(exports,"replace",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.I}});Object.defineProperty(exports,"replaceAll",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.J}});Object.defineProperty(exports,"reverse",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.B}});Object.defineProperty(exports,"reversePatch",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.rb}});Object.defineProperty(exports,"sanitizeFilename",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.xa}});Object.defineProperty(exports,"sentenceCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.k}});Object.defineProperty(exports,"sentenceCount",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Za}});Object.defineProperty(exports,"setLocale",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.b}});Object.defineProperty(exports,"similarity",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ta}});Object.defineProperty(exports,"singularize",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.fb}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.wa}});Object.defineProperty(exports,"snakeCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.h}});Object.defineProperty(exports,"speakingTime",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.db}});Object.defineProperty(exports,"splice",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.F}});Object.defineProperty(exports,"sprintf",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Fa}});Object.defineProperty(exports,"startsWith",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.na}});Object.defineProperty(exports,"stripHtml",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ya}});Object.defineProperty(exports,"stripTags",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.za}});Object.defineProperty(exports,"surround",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.R}});Object.defineProperty(exports,"swapCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.p}});Object.defineProperty(exports,"template",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ea}});Object.defineProperty(exports,"titleCase",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.j}});Object.defineProperty(exports,"toLower",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.r}});Object.defineProperty(exports,"toUpper",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.q}});Object.defineProperty(exports,"transliterate",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Da}});Object.defineProperty(exports,"trim",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.u}});Object.defineProperty(exports,"trimEnd",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.w}});Object.defineProperty(exports,"trimStart",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.v}});Object.defineProperty(exports,"truncate",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.C}});Object.defineProperty(exports,"unescape",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.sa}});Object.defineProperty(exports,"unescapeHtml",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.ua}});Object.defineProperty(exports,"unmask",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Ha}});Object.defineProperty(exports,"unwrap",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.E}});Object.defineProperty(exports,"wordCount",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.Wa}});Object.defineProperty(exports,"words",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.U}});Object.defineProperty(exports,"wrap",{enumerable:true,get:function(){return chunkJKMUUCWG_cjs.D}});exports.S=Vt;exports.getPlugins=Xt;exports.hasPlugin=Yt;exports.registerPlugin=Qt;exports.str=st;//# sourceMappingURL=index.cjs.map
|
|
11
|
+
*/Object.defineProperty(exports,"addIrregular",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.jb}});Object.defineProperty(exports,"addPluralRule",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ib}});Object.defineProperty(exports,"addUncountable",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.kb}});Object.defineProperty(exports,"after",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.M}});Object.defineProperty(exports,"afterLast",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.O}});Object.defineProperty(exports,"append",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.P}});Object.defineProperty(exports,"applyPatch",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.qb}});Object.defineProperty(exports,"before",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.L}});Object.defineProperty(exports,"beforeLast",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.N}});Object.defineProperty(exports,"bestMatch",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ua}});Object.defineProperty(exports,"between",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.K}});Object.defineProperty(exports,"byteSize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.$a}});Object.defineProperty(exports,"camelCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.f}});Object.defineProperty(exports,"capitalize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.s}});Object.defineProperty(exports,"charCount",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Xa}});Object.defineProperty(exports,"chars",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.V}});Object.defineProperty(exports,"clean",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Aa}});Object.defineProperty(exports,"collapseWhitespace",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.S}});Object.defineProperty(exports,"constantCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.l}});Object.defineProperty(exports,"contains",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ma}});Object.defineProperty(exports,"cosine",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Qa}});Object.defineProperty(exports,"countOccurrences",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.xb}});Object.defineProperty(exports,"createPatch",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.pb}});Object.defineProperty(exports,"decapitalize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.t}});Object.defineProperty(exports,"dice",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Na}});Object.defineProperty(exports,"diff",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ob}});Object.defineProperty(exports,"diffChars",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.lb}});Object.defineProperty(exports,"diffLines",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.nb}});Object.defineProperty(exports,"diffWords",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.mb}});Object.defineProperty(exports,"dotCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.m}});Object.defineProperty(exports,"endsWith",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.oa}});Object.defineProperty(exports,"entropy",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ab}});Object.defineProperty(exports,"equals",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.pa}});Object.defineProperty(exports,"escape",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ra}});Object.defineProperty(exports,"escapeHtml",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ta}});Object.defineProperty(exports,"escapeRegex",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.va}});Object.defineProperty(exports,"extract",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Bb}});Object.defineProperty(exports,"extractAll",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Cb}});Object.defineProperty(exports,"findSimilar",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Va}});Object.defineProperty(exports,"formatCurrency",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ja}});Object.defineProperty(exports,"formatNumber",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ka}});Object.defineProperty(exports,"frequency",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.bb}});Object.defineProperty(exports,"getAvailableLocales",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.e}});Object.defineProperty(exports,"getLocale",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.c}});Object.defineProperty(exports,"hamming",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Pa}});Object.defineProperty(exports,"headerCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.o}});Object.defineProperty(exports,"indexOf",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.vb}});Object.defineProperty(exports,"insert",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.G}});Object.defineProperty(exports,"isAlpha",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ea}});Object.defineProperty(exports,"isAlphanumeric",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ga}});Object.defineProperty(exports,"isBase64",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ia}});Object.defineProperty(exports,"isBlank",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.da}});Object.defineProperty(exports,"isCreditCard",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ba}});Object.defineProperty(exports,"isEmail",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.W}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ca}});Object.defineProperty(exports,"isHex",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ha}});Object.defineProperty(exports,"isIp",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Z}});Object.defineProperty(exports,"isIpv4",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs._}});Object.defineProperty(exports,"isIpv6",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.$}});Object.defineProperty(exports,"isJson",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ja}});Object.defineProperty(exports,"isLowerCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.la}});Object.defineProperty(exports,"isNumeric",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.fa}});Object.defineProperty(exports,"isPhone",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.aa}});Object.defineProperty(exports,"isPlural",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.gb}});Object.defineProperty(exports,"isSingular",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.hb}});Object.defineProperty(exports,"isUpperCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ka}});Object.defineProperty(exports,"isUrl",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.X}});Object.defineProperty(exports,"isUuid",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Y}});Object.defineProperty(exports,"jaroWinkler",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Oa}});Object.defineProperty(exports,"kebabCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.g}});Object.defineProperty(exports,"lastIndexOf",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.wb}});Object.defineProperty(exports,"latinise",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ca}});Object.defineProperty(exports,"lcs",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ra}});Object.defineProperty(exports,"lcsLength",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Sa}});Object.defineProperty(exports,"levenshtein",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.La}});Object.defineProperty(exports,"levenshteinRatio",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ma}});Object.defineProperty(exports,"lineCount",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ya}});Object.defineProperty(exports,"lines",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.T}});Object.defineProperty(exports,"mask",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ga}});Object.defineProperty(exports,"match",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.zb}});Object.defineProperty(exports,"matchAll",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ab}});Object.defineProperty(exports,"matches",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.qa}});Object.defineProperty(exports,"normalize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ba}});Object.defineProperty(exports,"ordinalize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ia}});Object.defineProperty(exports,"pad",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.x}});Object.defineProperty(exports,"padEnd",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.z}});Object.defineProperty(exports,"padStart",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.y}});Object.defineProperty(exports,"paragraphCount",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs._a}});Object.defineProperty(exports,"pascalCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.i}});Object.defineProperty(exports,"pathCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.n}});Object.defineProperty(exports,"pluralize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.eb}});Object.defineProperty(exports,"positions",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.yb}});Object.defineProperty(exports,"prepend",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Q}});Object.defineProperty(exports,"readingTime",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.cb}});Object.defineProperty(exports,"registerLocale",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.d}});Object.defineProperty(exports,"remove",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.H}});Object.defineProperty(exports,"repeat",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.A}});Object.defineProperty(exports,"replace",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.I}});Object.defineProperty(exports,"replaceAll",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.J}});Object.defineProperty(exports,"reverse",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.B}});Object.defineProperty(exports,"reversePatch",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.rb}});Object.defineProperty(exports,"sanitizeFilename",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.xa}});Object.defineProperty(exports,"sentenceCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.k}});Object.defineProperty(exports,"sentenceCount",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Za}});Object.defineProperty(exports,"setLocale",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.b}});Object.defineProperty(exports,"similarity",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ta}});Object.defineProperty(exports,"singularize",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.fb}});Object.defineProperty(exports,"slugify",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.wa}});Object.defineProperty(exports,"snakeCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.h}});Object.defineProperty(exports,"speakingTime",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.db}});Object.defineProperty(exports,"splice",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.F}});Object.defineProperty(exports,"sprintf",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Fa}});Object.defineProperty(exports,"startsWith",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.na}});Object.defineProperty(exports,"stripHtml",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ya}});Object.defineProperty(exports,"stripTags",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.za}});Object.defineProperty(exports,"surround",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.R}});Object.defineProperty(exports,"swapCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.p}});Object.defineProperty(exports,"template",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ea}});Object.defineProperty(exports,"titleCase",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.j}});Object.defineProperty(exports,"toLower",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.r}});Object.defineProperty(exports,"toUpper",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.q}});Object.defineProperty(exports,"transliterate",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Da}});Object.defineProperty(exports,"trim",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.u}});Object.defineProperty(exports,"trimEnd",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.w}});Object.defineProperty(exports,"trimStart",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.v}});Object.defineProperty(exports,"truncate",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.C}});Object.defineProperty(exports,"unescape",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.sa}});Object.defineProperty(exports,"unescapeHtml",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.ua}});Object.defineProperty(exports,"unmask",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Ha}});Object.defineProperty(exports,"unwrap",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.E}});Object.defineProperty(exports,"wordCount",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.Wa}});Object.defineProperty(exports,"words",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.U}});Object.defineProperty(exports,"wrap",{enumerable:true,get:function(){return chunk7GAPT34Z_cjs.D}});exports.S=Vt;exports.getPlugins=Xt;exports.hasPlugin=Yt;exports.registerPlugin=Qt;exports.str=st;//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions,
|
|
2
|
-
export { P as PatchHunk, i as PatchResult,
|
|
1
|
+
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions, C as CurrencyOptions, M as MaskOptions, f as MatchResult, g as StrKitLocale, h as StrKitPlugin } from './types-BeGdhyi5.cjs';
|
|
2
|
+
export { P as PatchHunk, i as PatchResult, j as StrKitConfig, k as StrKitKernel } from './types-BeGdhyi5.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* StrKit Chain Interface
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions,
|
|
2
|
-
export { P as PatchHunk, i as PatchResult,
|
|
1
|
+
import { T as TruncateOptions, S as SlugifyOptions, a as TemplateOptions, A as AnalysisOptions, F as FrequencyResult, b as StrKitOptions, c as SearchOptions, d as SimilarityOptions, D as DiffResult, e as DiffOptions, C as CurrencyOptions, M as MaskOptions, f as MatchResult, g as StrKitLocale, h as StrKitPlugin } from './types-BeGdhyi5.js';
|
|
2
|
+
export { P as PatchHunk, i as PatchResult, j as StrKitConfig, k as StrKitKernel } from './types-BeGdhyi5.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* StrKit Chain Interface
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Cb,Bb,Ab,zb,yb,xb,wb,vb,ub,tb,sb,rb,qb,pb,nb,mb,lb,ob,kb,jb,ib,hb,gb,fb,eb,db,cb,bb,ab,$a,_a,Za,Ya,Xa,Wa,Va,Ua,Ta,Sa,Ra,Qa,Pa,Oa,Na,Ma,La,Ka,Ja,Ia,Ha,Ga,Fa,Ea,Da,Ca,Ba,Aa,za,ya,xa,wa,va,ua,ta,sa,ra,qa,pa,oa,na,ma,la,ka,ja,ia,ha,ga,fa,ea,da,ca,ba,aa,$,_,Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C,B,A,z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i,h,g,f,a}from'./chunk-BOMMPZND.mjs';export{jb as addIrregular,ib as addPluralRule,kb as addUncountable,M as after,O as afterLast,P as append,qb as applyPatch,L as before,N as beforeLast,Ua as bestMatch,K as between,$a as byteSize,f as camelCase,s as capitalize,Xa as charCount,V as chars,Aa as clean,S as collapseWhitespace,l as constantCase,ma as contains,Qa as cosine,xb as countOccurrences,pb as createPatch,t as decapitalize,Na as dice,ob as diff,lb as diffChars,nb as diffLines,mb as diffWords,m as dotCase,oa as endsWith,ab as entropy,pa as equals,ra as escape,ta as escapeHtml,va as escapeRegex,Bb as extract,Cb as extractAll,Va as findSimilar,Ja as formatCurrency,Ka as formatNumber,bb as frequency,e as getAvailableLocales,c as getLocale,Pa as hamming,o as headerCase,vb as indexOf,G as insert,ea as isAlpha,ga as isAlphanumeric,ia as isBase64,da as isBlank,ba as isCreditCard,W as isEmail,ca as isEmpty,ha as isHex,Z as isIp,_ as isIpv4,$ as isIpv6,ja as isJson,la as isLowerCase,fa as isNumeric,aa as isPhone,gb as isPlural,hb as isSingular,ka as isUpperCase,X as isUrl,Y as isUuid,Oa as jaroWinkler,g as kebabCase,wb as lastIndexOf,Ca as latinise,Ra as lcs,Sa as lcsLength,La as levenshtein,Ma as levenshteinRatio,Ya as lineCount,T as lines,Ga as mask,zb as match,Ab as matchAll,qa as matches,Ba as normalize,Ia as ordinalize,x as pad,z as padEnd,y as padStart,_a as paragraphCount,i as pascalCase,n as pathCase,eb as pluralize,yb as positions,Q as prepend,cb as readingTime,d as registerLocale,H as remove,A as repeat,I as replace,J as replaceAll,B as reverse,rb as reversePatch,xa as sanitizeFilename,k as sentenceCase,Za as sentenceCount,b as setLocale,Ta as similarity,fb as singularize,wa as slugify,h as snakeCase,db as speakingTime,F as splice,Fa as sprintf,na as startsWith,ya as stripHtml,za as stripTags,R as surround,p as swapCase,Ea as template,j as titleCase,r as toLower,q as toUpper,Da as transliterate,u as trim,w as trimEnd,v as trimStart,C as truncate,sa as unescape,ua as unescapeHtml,Ha as unmask,E as unwrap,Wa as wordCount,U as words,D as wrap}from'./chunk-BOMMPZND.mjs';var Ot=class n$1{constructor(i){this._value=i;}_create(i){return new n$1(i)}get length(){return this._value.length}get s(){return this._value}get value(){return this._value}getValue(){return this._value}toString(){return this._value}clone(){return this._create(this._value)}camelCase(){return this._create(f(this._value))}kebabCase(){return this._create(g(this._value))}snakeCase(){return this._create(h(this._value))}pascalCase(){return this._create(i(this._value))}titleCase(){return this._create(j(this._value))}sentenceCase(){return this._create(k(this._value))}constantCase(){return this._create(l(this._value))}dotCase(){return this._create(m(this._value))}pathCase(){return this._create(n(this._value))}headerCase(){return this._create(o(this._value))}swapCase(){return this._create(p(this._value))}upper(){return this._create(q(this._value))}lower(){return this._create(r(this._value))}capitalize(){return this._create(s(this._value))}decapitalize(){return this._create(t(this._value))}trim(i){return this._create(u(this._value,i))}trimStart(i){return this._create(v(this._value,i))}trimEnd(i){return this._create(w(this._value,i))}pad(i,t){return this._create(x(this._value,i,t))}padStart(i,t){return this._create(y(this._value,i,t))}padEnd(i,t){return this._create(z(this._value,i,t))}repeat(i){return this._create(A(this._value,i))}reverse(){return this._create(B(this._value))}truncate(i,t){return this._create(C(this._value,i,t))}wrap(i,t){return this._create(D(this._value,i,t))}unwrap(i,t){return this._create(E(this._value,i,t))}insert(i,t){return this._create(G(this._value,i,t))}remove(i,t){return this._create(H(this._value,i,t))}replace(i,t){return this._create(I(this._value,i,t))}replaceAll(i,t){return this._create(J(this._value,i,t))}between(i,t){return this._create(K(this._value,i,t))}before(i){return this._create(L(this._value,i))}after(i){return this._create(M(this._value,i))}beforeLast(i){return this._create(N(this._value,i))}afterLast(i){return this._create(O(this._value,i))}append(...i){return this._create(P(this._value,...i))}prepend(...i){return this._create(Q(this._value,...i))}surround(i){return this._create(R(this._value,i))}collapseWhitespace(){return this._create(S(this._value))}escape(){return this._create(ra(this._value))}unescape(){return this._create(sa(this._value))}escapeHtml(){return this._create(ta(this._value))}unescapeHtml(){return this._create(ua(this._value))}escapeRegex(){return this._create(va(this._value))}slugify(i){return this._create(wa(this._value,i))}filename(){return this._create(xa(this._value))}stripHtml(){return this._create(ya(this._value))}stripTags(i){return this._create(za(this._value,i))}clean(){return this._create(Aa(this._value))}normalize(){return this._create(Ba(this._value))}latinise(){return this._create(Ca(this._value))}transliterate(i){return this._create(Da(this._value,i))}template(i,t){return this._create(Ea(this._value,i,t))}sprintf(...i){return this._create(Fa(this._value,...i))}mask(i){return this._create(Ga(this._value,i))}unmask(i){return this._create(Ha(this._value,i))}isEmail(){return W(this._value)}isUrl(){return X(this._value)}isUuid(i){return Y(this._value,i)}isIp(){return Z(this._value)}isIpv4(){return _(this._value)}isIpv6(){return $(this._value)}isPhone(){return aa(this._value)}isCreditCard(){return ba(this._value)}isEmpty(){return ca(this._value)}isBlank(){return da(this._value)}isAlpha(){return ea(this._value)}isNumeric(){return fa(this._value)}isAlphanumeric(){return ga(this._value)}isHex(){return ha(this._value)}isBase64(){return ia(this._value)}isJson(){return ja(this._value)}isUpperCase(){return ka(this._value)}isLowerCase(){return la(this._value)}wordCount(){return Wa(this._value)}charCount(i){return Xa(this._value,i)}lineCount(){return Ya(this._value)}sentenceCount(){return Za(this._value)}paragraphCount(){return _a(this._value)}byteSize(){return $a(this._value)}entropy(){return ab(this._value)}frequency(i){return bb(this._value,i)}readingTime(i){return cb(this._value,i)}speakingTime(i){return db(this._value,i)}contains(i,t){return sb(this._value,i,t)}startsWith(i){return tb(this._value,i)}endsWith(i){return ub(this._value,i)}indexOf(i,t){return vb(this._value,i,t)}lastIndexOf(i,t){return wb(this._value,i,t)}countOccurrences(i,t){return xb(this._value,i,t)}positions(i,t){return yb(this._value,i,t)}match(i){return zb(this._value,i)}matchAll(i){return Ab(this._value,i)}levenshtein(i){return La(this._value,i)}levenshteinRatio(i){return Ma(this._value,i)}dice(i){return Na(this._value,i)}jaroWinkler(i){return Oa(this._value,i)}hamming(i){return Pa(this._value,i)}cosine(i){return Qa(this._value,i)}similarity(i,t){return Ta(this._value,i,t)}diffChars(i){return lb(this._value,i)}diffWords(i){return mb(this._value,i)}diffLines(i){return nb(this._value,i)}diff(i,t){return ob(this._value,i,t)}plural(i,t){return this._create(eb(this._value,i,t))}singular(){return this._create(fb(this._value))}isPlural(){return gb(this._value)}isSingular(){return hb(this._value)}lines(){return T(this._value)}words(){return U(this._value)}chars(){return V(this._value)}};function Vt(n){return new Ot(n)}var st={case:{camel:f,kebab:g,snake:h,pascal:i,title:j,sentence:k,constant:l,dot:m,path:n,header:o,swap:p,upper:q,lower:r,capitalize:s,decapitalize:t},manipulation:{trim:u,trimStart:v,trimEnd:w,pad:x,padStart:y,padEnd:z,repeat:A,reverse:B,truncate:C,wrap:D,unwrap:E,splice:F,insert:G,remove:H,replace:I,replaceAll:J,between:K,before:L,after:M,beforeLast:N,afterLast:O,append:P,prepend:Q,surround:R,collapseWhitespace:S,lines:T,words:U,chars:V},validate:{email:W,url:X,uuid:Y,ip:Z,ipv4:_,ipv6:$,phone:aa,creditCard:ba,empty:ca,blank:da,alpha:ea,numeric:fa,alphanumeric:ga,hex:ha,base64:ia,json:ja,upperCase:ka,lowerCase:la,contains:ma,startsWith:na,endsWith:oa,equals:pa,matches:qa},sanitize:{escape:ra,unescape:sa,escapeHtml:ta,unescapeHtml:ua,escapeRegex:va,slugify:wa,filename:xa,stripHtml:ya,stripTags:za,clean:Aa,normalize:Ba,latinise:Ca,transliterate:Da},format:{template:Ea,sprintf:Fa,mask:Ga,unmask:Ha,ordinalize:Ia,currency:Ja,number:Ka},similarity:{levenshtein:La,levenshteinRatio:Ma,dice:Na,jaroWinkler:Oa,hamming:Pa,cosine:Qa,lcs:Ra,lcsLength:Sa,similarity:Ta,bestMatch:Ua,findSimilar:Va},analysis:{wordCount:Wa,charCount:Xa,lineCount:Ya,sentenceCount:Za,paragraphCount:_a,byteSize:$a,entropy:ab,frequency:bb,readingTime:cb,speakingTime:db},plural:{plural:eb,singular:fb,isPlural:gb,isSingular:hb,addRule:ib,addIrregular:jb,addUncountable:kb},diff:{diff:ob,diffChars:lb,diffWords:mb,diffLines:nb,createPatch:pb,applyPatch:qb,reversePatch:rb},search:{contains:sb,startsWith:tb,endsWith:ub,indexOf:vb,lastIndexOf:wb,countOccurrences:xb,positions:yb,match:zb,matchAll:Ab,extract:Bb,extractAll:Cb}};var Gt=new Set(["__proto__","prototype","constructor"]),kt=class{constructor(){this.plugins=new Map;this.methods=new Map;this.config={locale:"en"};}register(i){this.validatePlugin(i),this.checkDependencies(i),this.plugins.set(i.name,i);for(let[t,Lt]of Object.entries(i.methods)){let Wt=`${i.name}.${t}`;this.methods.set(Wt,Lt);}Object.defineProperty(st,i.name,{value:i.methods,enumerable:true,configurable:true,writable:false}),i.init&&i.init(this);}getMethod(i){return this.methods.get(i)}getPluginMethods(i){let t=this.plugins.get(i);return t?t.methods:{}}hasPlugin(i){return this.plugins.has(i)}getPlugins(){return Array.from(this.plugins.values())}getLocale(){return this.config.locale}setLocale(i){this.config.locale=i,a.setLocale(i);}validatePlugin(i){if(!i.name)throw new Error("Plugin must have a name");if(!i.version)throw new Error(`Plugin '${i.name}' must have a version`);if(!i.methods||typeof i.methods!="object")throw new Error(`Plugin '${i.name}' must have a methods object`);if(this.plugins.has(i.name))throw new Error(`Plugin '${i.name}' is already registered`);if(Gt.has(i.name)||Object.prototype.hasOwnProperty.call(st,i.name))throw new Error(`Plugin name '${i.name}' is reserved (it would replace a built-in str.* namespace)`)}checkDependencies(i){if(i.dependencies){for(let t of i.dependencies)if(!this.plugins.has(t))throw new Error(`Plugin '${i.name}' depends on '${t}' which is not registered`)}}},Rt=new kt;function Qt(n){Rt.register(n);}function Xt(){return Rt.getPlugins()}function Yt(n){return Rt.hasPlugin(n)}/**
|
|
1
|
+
import {Cb,Bb,Ab,zb,yb,xb,wb,vb,ub,tb,sb,rb,qb,pb,nb,mb,lb,ob,kb,jb,ib,hb,gb,fb,eb,db,cb,bb,ab,$a,_a,Za,Ya,Xa,Wa,Va,Ua,Ta,Sa,Ra,Qa,Pa,Oa,Na,Ma,La,Ka,Ja,Ia,Ha,Ga,Fa,Ea,Da,Ca,Ba,Aa,za,ya,xa,wa,va,ua,ta,sa,ra,qa,pa,oa,na,ma,la,ka,ja,ia,ha,ga,fa,ea,da,ca,ba,aa,$,_,Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C,B,A,z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i,h,g,f,a}from'./chunk-VOXPK5JD.mjs';export{jb as addIrregular,ib as addPluralRule,kb as addUncountable,M as after,O as afterLast,P as append,qb as applyPatch,L as before,N as beforeLast,Ua as bestMatch,K as between,$a as byteSize,f as camelCase,s as capitalize,Xa as charCount,V as chars,Aa as clean,S as collapseWhitespace,l as constantCase,ma as contains,Qa as cosine,xb as countOccurrences,pb as createPatch,t as decapitalize,Na as dice,ob as diff,lb as diffChars,nb as diffLines,mb as diffWords,m as dotCase,oa as endsWith,ab as entropy,pa as equals,ra as escape,ta as escapeHtml,va as escapeRegex,Bb as extract,Cb as extractAll,Va as findSimilar,Ja as formatCurrency,Ka as formatNumber,bb as frequency,e as getAvailableLocales,c as getLocale,Pa as hamming,o as headerCase,vb as indexOf,G as insert,ea as isAlpha,ga as isAlphanumeric,ia as isBase64,da as isBlank,ba as isCreditCard,W as isEmail,ca as isEmpty,ha as isHex,Z as isIp,_ as isIpv4,$ as isIpv6,ja as isJson,la as isLowerCase,fa as isNumeric,aa as isPhone,gb as isPlural,hb as isSingular,ka as isUpperCase,X as isUrl,Y as isUuid,Oa as jaroWinkler,g as kebabCase,wb as lastIndexOf,Ca as latinise,Ra as lcs,Sa as lcsLength,La as levenshtein,Ma as levenshteinRatio,Ya as lineCount,T as lines,Ga as mask,zb as match,Ab as matchAll,qa as matches,Ba as normalize,Ia as ordinalize,x as pad,z as padEnd,y as padStart,_a as paragraphCount,i as pascalCase,n as pathCase,eb as pluralize,yb as positions,Q as prepend,cb as readingTime,d as registerLocale,H as remove,A as repeat,I as replace,J as replaceAll,B as reverse,rb as reversePatch,xa as sanitizeFilename,k as sentenceCase,Za as sentenceCount,b as setLocale,Ta as similarity,fb as singularize,wa as slugify,h as snakeCase,db as speakingTime,F as splice,Fa as sprintf,na as startsWith,ya as stripHtml,za as stripTags,R as surround,p as swapCase,Ea as template,j as titleCase,r as toLower,q as toUpper,Da as transliterate,u as trim,w as trimEnd,v as trimStart,C as truncate,sa as unescape,ua as unescapeHtml,Ha as unmask,E as unwrap,Wa as wordCount,U as words,D as wrap}from'./chunk-VOXPK5JD.mjs';var Ot=class n$1{constructor(i){this._value=i;}_create(i){return new n$1(i)}get length(){return this._value.length}get s(){return this._value}get value(){return this._value}getValue(){return this._value}toString(){return this._value}clone(){return this._create(this._value)}camelCase(){return this._create(f(this._value))}kebabCase(){return this._create(g(this._value))}snakeCase(){return this._create(h(this._value))}pascalCase(){return this._create(i(this._value))}titleCase(){return this._create(j(this._value))}sentenceCase(){return this._create(k(this._value))}constantCase(){return this._create(l(this._value))}dotCase(){return this._create(m(this._value))}pathCase(){return this._create(n(this._value))}headerCase(){return this._create(o(this._value))}swapCase(){return this._create(p(this._value))}upper(){return this._create(q(this._value))}lower(){return this._create(r(this._value))}capitalize(){return this._create(s(this._value))}decapitalize(){return this._create(t(this._value))}trim(i){return this._create(u(this._value,i))}trimStart(i){return this._create(v(this._value,i))}trimEnd(i){return this._create(w(this._value,i))}pad(i,t){return this._create(x(this._value,i,t))}padStart(i,t){return this._create(y(this._value,i,t))}padEnd(i,t){return this._create(z(this._value,i,t))}repeat(i){return this._create(A(this._value,i))}reverse(){return this._create(B(this._value))}truncate(i,t){return this._create(C(this._value,i,t))}wrap(i,t){return this._create(D(this._value,i,t))}unwrap(i,t){return this._create(E(this._value,i,t))}insert(i,t){return this._create(G(this._value,i,t))}remove(i,t){return this._create(H(this._value,i,t))}replace(i,t){return this._create(I(this._value,i,t))}replaceAll(i,t){return this._create(J(this._value,i,t))}between(i,t){return this._create(K(this._value,i,t))}before(i){return this._create(L(this._value,i))}after(i){return this._create(M(this._value,i))}beforeLast(i){return this._create(N(this._value,i))}afterLast(i){return this._create(O(this._value,i))}append(...i){return this._create(P(this._value,...i))}prepend(...i){return this._create(Q(this._value,...i))}surround(i){return this._create(R(this._value,i))}collapseWhitespace(){return this._create(S(this._value))}escape(){return this._create(ra(this._value))}unescape(){return this._create(sa(this._value))}escapeHtml(){return this._create(ta(this._value))}unescapeHtml(){return this._create(ua(this._value))}escapeRegex(){return this._create(va(this._value))}slugify(i){return this._create(wa(this._value,i))}filename(){return this._create(xa(this._value))}stripHtml(){return this._create(ya(this._value))}stripTags(i){return this._create(za(this._value,i))}clean(){return this._create(Aa(this._value))}normalize(){return this._create(Ba(this._value))}latinise(){return this._create(Ca(this._value))}transliterate(i){return this._create(Da(this._value,i))}template(i,t){return this._create(Ea(this._value,i,t))}sprintf(...i){return this._create(Fa(this._value,...i))}mask(i){return this._create(Ga(this._value,i))}unmask(i){return this._create(Ha(this._value,i))}isEmail(){return W(this._value)}isUrl(){return X(this._value)}isUuid(i){return Y(this._value,i)}isIp(){return Z(this._value)}isIpv4(){return _(this._value)}isIpv6(){return $(this._value)}isPhone(){return aa(this._value)}isCreditCard(){return ba(this._value)}isEmpty(){return ca(this._value)}isBlank(){return da(this._value)}isAlpha(){return ea(this._value)}isNumeric(){return fa(this._value)}isAlphanumeric(){return ga(this._value)}isHex(){return ha(this._value)}isBase64(){return ia(this._value)}isJson(){return ja(this._value)}isUpperCase(){return ka(this._value)}isLowerCase(){return la(this._value)}wordCount(){return Wa(this._value)}charCount(i){return Xa(this._value,i)}lineCount(){return Ya(this._value)}sentenceCount(){return Za(this._value)}paragraphCount(){return _a(this._value)}byteSize(){return $a(this._value)}entropy(){return ab(this._value)}frequency(i){return bb(this._value,i)}readingTime(i){return cb(this._value,i)}speakingTime(i){return db(this._value,i)}contains(i,t){return sb(this._value,i,t)}startsWith(i){return tb(this._value,i)}endsWith(i){return ub(this._value,i)}indexOf(i,t){return vb(this._value,i,t)}lastIndexOf(i,t){return wb(this._value,i,t)}countOccurrences(i,t){return xb(this._value,i,t)}positions(i,t){return yb(this._value,i,t)}match(i){return zb(this._value,i)}matchAll(i){return Ab(this._value,i)}levenshtein(i){return La(this._value,i)}levenshteinRatio(i){return Ma(this._value,i)}dice(i){return Na(this._value,i)}jaroWinkler(i){return Oa(this._value,i)}hamming(i){return Pa(this._value,i)}cosine(i){return Qa(this._value,i)}similarity(i,t){return Ta(this._value,i,t)}diffChars(i){return lb(this._value,i)}diffWords(i){return mb(this._value,i)}diffLines(i){return nb(this._value,i)}diff(i,t){return ob(this._value,i,t)}plural(i,t){return this._create(eb(this._value,i,t))}singular(){return this._create(fb(this._value))}isPlural(){return gb(this._value)}isSingular(){return hb(this._value)}lines(){return T(this._value)}words(){return U(this._value)}chars(){return V(this._value)}};function Vt(n){return new Ot(n)}var st={case:{camel:f,kebab:g,snake:h,pascal:i,title:j,sentence:k,constant:l,dot:m,path:n,header:o,swap:p,upper:q,lower:r,capitalize:s,decapitalize:t},manipulation:{trim:u,trimStart:v,trimEnd:w,pad:x,padStart:y,padEnd:z,repeat:A,reverse:B,truncate:C,wrap:D,unwrap:E,splice:F,insert:G,remove:H,replace:I,replaceAll:J,between:K,before:L,after:M,beforeLast:N,afterLast:O,append:P,prepend:Q,surround:R,collapseWhitespace:S,lines:T,words:U,chars:V},validate:{email:W,url:X,uuid:Y,ip:Z,ipv4:_,ipv6:$,phone:aa,creditCard:ba,empty:ca,blank:da,alpha:ea,numeric:fa,alphanumeric:ga,hex:ha,base64:ia,json:ja,upperCase:ka,lowerCase:la,contains:ma,startsWith:na,endsWith:oa,equals:pa,matches:qa},sanitize:{escape:ra,unescape:sa,escapeHtml:ta,unescapeHtml:ua,escapeRegex:va,slugify:wa,filename:xa,stripHtml:ya,stripTags:za,clean:Aa,normalize:Ba,latinise:Ca,transliterate:Da},format:{template:Ea,sprintf:Fa,mask:Ga,unmask:Ha,ordinalize:Ia,currency:Ja,number:Ka},similarity:{levenshtein:La,levenshteinRatio:Ma,dice:Na,jaroWinkler:Oa,hamming:Pa,cosine:Qa,lcs:Ra,lcsLength:Sa,similarity:Ta,bestMatch:Ua,findSimilar:Va},analysis:{wordCount:Wa,charCount:Xa,lineCount:Ya,sentenceCount:Za,paragraphCount:_a,byteSize:$a,entropy:ab,frequency:bb,readingTime:cb,speakingTime:db},plural:{plural:eb,singular:fb,isPlural:gb,isSingular:hb,addRule:ib,addIrregular:jb,addUncountable:kb},diff:{diff:ob,diffChars:lb,diffWords:mb,diffLines:nb,createPatch:pb,applyPatch:qb,reversePatch:rb},search:{contains:sb,startsWith:tb,endsWith:ub,indexOf:vb,lastIndexOf:wb,countOccurrences:xb,positions:yb,match:zb,matchAll:Ab,extract:Bb,extractAll:Cb}};var Gt=new Set(["__proto__","prototype","constructor"]),kt=class{constructor(){this.plugins=new Map;this.methods=new Map;this.config={locale:"en"};}register(i){this.validatePlugin(i),this.checkDependencies(i),this.plugins.set(i.name,i);for(let[t,Lt]of Object.entries(i.methods)){let Wt=`${i.name}.${t}`;this.methods.set(Wt,Lt);}Object.defineProperty(st,i.name,{value:i.methods,enumerable:true,configurable:true,writable:false}),i.init&&i.init(this);}getMethod(i){return this.methods.get(i)}getPluginMethods(i){let t=this.plugins.get(i);return t?t.methods:{}}hasPlugin(i){return this.plugins.has(i)}getPlugins(){return Array.from(this.plugins.values())}getLocale(){return this.config.locale}setLocale(i){this.config.locale=i,a.setLocale(i);}validatePlugin(i){if(!i.name)throw new Error("Plugin must have a name");if(!i.version)throw new Error(`Plugin '${i.name}' must have a version`);if(!i.methods||typeof i.methods!="object")throw new Error(`Plugin '${i.name}' must have a methods object`);if(this.plugins.has(i.name))throw new Error(`Plugin '${i.name}' is already registered`);if(Gt.has(i.name)||Object.prototype.hasOwnProperty.call(st,i.name))throw new Error(`Plugin name '${i.name}' is reserved (it would replace a built-in str.* namespace)`)}checkDependencies(i){if(i.dependencies){for(let t of i.dependencies)if(!this.plugins.has(t))throw new Error(`Plugin '${i.name}' depends on '${t}' which is not registered`)}}},Rt=new kt;function Qt(n){Rt.register(n);}function Xt(){return Rt.getPlugins()}function Yt(n){return Rt.hasPlugin(n)}/**
|
|
2
2
|
* @oxog/strkit - Zero-Dependency String Toolkit
|
|
3
3
|
*
|
|
4
4
|
* The ultimate string manipulation toolkit for JavaScript/TypeScript.
|
|
@@ -231,4 +231,4 @@ interface StrKitConfig {
|
|
|
231
231
|
locale: string;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
export type { AnalysisOptions as A, CurrencyOptions as C, DiffResult as D, FrequencyResult as F, MaskOptions as M, PatchHunk as P, SlugifyOptions as S, TruncateOptions as T, TemplateOptions as a, StrKitOptions as b, SearchOptions as c, SimilarityOptions as d, DiffOptions as e, MatchResult as f, StrKitLocale as g, StrKitPlugin as h, PatchResult as i,
|
|
234
|
+
export type { AnalysisOptions as A, CurrencyOptions as C, DiffResult as D, FrequencyResult as F, MaskOptions as M, PatchHunk as P, SlugifyOptions as S, TruncateOptions as T, TemplateOptions as a, StrKitOptions as b, SearchOptions as c, SimilarityOptions as d, DiffOptions as e, MatchResult as f, StrKitLocale as g, StrKitPlugin as h, PatchResult as i, StrKitConfig as j, StrKitKernel as k };
|
|
@@ -231,4 +231,4 @@ interface StrKitConfig {
|
|
|
231
231
|
locale: string;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
export type { AnalysisOptions as A, CurrencyOptions as C, DiffResult as D, FrequencyResult as F, MaskOptions as M, PatchHunk as P, SlugifyOptions as S, TruncateOptions as T, TemplateOptions as a, StrKitOptions as b, SearchOptions as c, SimilarityOptions as d, DiffOptions as e, MatchResult as f, StrKitLocale as g, StrKitPlugin as h, PatchResult as i,
|
|
234
|
+
export type { AnalysisOptions as A, CurrencyOptions as C, DiffResult as D, FrequencyResult as F, MaskOptions as M, PatchHunk as P, SlugifyOptions as S, TruncateOptions as T, TemplateOptions as a, StrKitOptions as b, SearchOptions as c, SimilarityOptions as d, DiffOptions as e, MatchResult as f, StrKitLocale as g, StrKitPlugin as h, PatchResult as i, StrKitConfig as j, StrKitKernel as k };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxog/strkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The ultimate zero-dependency string manipulation toolkit for JavaScript/TypeScript. 115+ methods across 10 categories with 4 flexible API styles, i18n support, and micro-kernel plugin architecture.",
|
|
5
5
|
"author": "ersinkoc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,6 +35,13 @@
|
|
|
35
35
|
"main": "./dist/index.cjs",
|
|
36
36
|
"module": "./dist/index.mjs",
|
|
37
37
|
"types": "./dist/index.d.ts",
|
|
38
|
+
"typesVersions": {
|
|
39
|
+
"*": {
|
|
40
|
+
"extend": [
|
|
41
|
+
"./dist/extend.d.ts"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
38
45
|
"exports": {
|
|
39
46
|
".": {
|
|
40
47
|
"import": {
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
"./src/locales/index.ts"
|
|
70
77
|
],
|
|
71
78
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
79
|
+
"node": ">=18"
|
|
73
80
|
},
|
|
74
81
|
"scripts": {
|
|
75
82
|
"build": "tsup",
|
|
@@ -78,8 +85,8 @@
|
|
|
78
85
|
"test:watch": "vitest",
|
|
79
86
|
"test:coverage": "vitest run --coverage",
|
|
80
87
|
"test:package": "node scripts/check-package.mjs",
|
|
81
|
-
"lint": "eslint src tests --
|
|
82
|
-
"lint:fix": "eslint src tests --
|
|
88
|
+
"lint": "eslint src tests --max-warnings=0",
|
|
89
|
+
"lint:fix": "eslint src tests --fix",
|
|
83
90
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
84
91
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
|
|
85
92
|
"check": "npm run lint && npm run typecheck && npm run test:coverage",
|
|
@@ -89,16 +96,25 @@
|
|
|
89
96
|
"prepublishOnly": "npm run check && npm run build && npm run test:package"
|
|
90
97
|
},
|
|
91
98
|
"devDependencies": {
|
|
99
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
100
|
+
"@eslint/js": "^10.0.1",
|
|
92
101
|
"@types/node": "^20.10.0",
|
|
93
|
-
"@
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"eslint": "^8.54.0",
|
|
97
|
-
"eslint-config-prettier": "^9.0.0",
|
|
102
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
103
|
+
"eslint": "^10.0.0",
|
|
104
|
+
"globals": "^17.0.0",
|
|
98
105
|
"prettier": "^3.1.0",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
106
|
+
"publint": "^0.3.25",
|
|
107
|
+
"tsup": "^8.5.0",
|
|
108
|
+
"typescript": "^5.9.3",
|
|
109
|
+
"typescript-eslint": "^8.74.0",
|
|
110
|
+
"vitepress": "^2.0.0-alpha.21",
|
|
111
|
+
"vitest": "^4.1.12"
|
|
112
|
+
},
|
|
113
|
+
"oxog": {
|
|
114
|
+
"packageCheck": {
|
|
115
|
+
"typeOnly": [
|
|
116
|
+
"./extend"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
103
119
|
}
|
|
104
120
|
}
|