6.13.92 • Published 10 months ago

@diotoborg/odit-fuga v6.13.92

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

String.prototype.trimStart Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2019-spec-compliant String.prototype.trimStart shim. Invoke its "shim" method to shim String.prototype.trimStart if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec. In an ES6 environment, it will also work properly with Symbols.

Most common usage:

var trimStart = require('@diotoborg/odit-fuga');

assert(trimStart(' \t\na \t\n') === 'a \t\n');

if (!String.prototype.trimStart) {
	trimStart.shim();
}

assert(trimStart(' \t\na \t\n') === ' \t\na \t\n'.trimStart());

Tests

Simply clone the repo, npm install, and run npm test

higher-orderthreeintrinsicObject.fromEntriesMapWeakSetvalueoptimizerauthenticationdependenciesrulesruntimeArray.prototype.includesECMAScript 2020es-abstractcollectionlastfull-widthjsxECMAScript 5argsWebSocketstylingconfigidentifiersdeterministicpicomatchzxYAMLbrowserslistoutputObject.assignelmeffect-tsobjectanimationfastclonekeyspostcss-plugindotenv6to5assignawesomesaucefast-clonemapeslintconfigutiles2018ES2022mkdirinpipesideAsyncIteratorStreamsgetPrototypeOfglobalThiscryptreact posedescriptortostringtagdeleteES6fast-copyacornserviceasciimetadataapolloreact-hooksback-endtrimLeftframerstyleregular-expressionchineselibphonenumberwaapiyupdescriptorsschemenodejsjsoncompareignoretacitbrowserstyleguideenumerablecommandmkdirpfastpurespinnersconsumees2017robustclass-validatorzeromulti-packagereact-hook-formrangeerrorconcatansiObject.getPrototypeOf256negativereplaydeepclonesimpledbmomentbinequalitysortprivate datatslib0descriptionObject.keysserializearraysstyled-componentscontainsmatchestraverseRegExp.prototype.flagsmobilebootstrap cssfastcopypreprocessorECMAScript 2016exitTypedArrayperformanceartspawncolorsarraybufferexit-codeoffsetflatMapcall-boundsymlinkstylesheethasOwnprunesymbolECMAScript 2023mockimportexportpoint-freequeueMicrotaskformprettycss lessequalfantasy-landimmertestercloudformationtextgraphqlRxloadbalancingownarktypenumberMicrosoftjsonschemabeanstalk.gitignorenpmignoredataviewflagposevarsoptionextendchaicurriedgradients css3callbindemrReactiveXsuperagentfindLastPromisefindLastIndexkinesisArrayBuffer#slicei18nincludeseventsamazonhashwgetmake dirECMAScript 2018globArray.prototype.flatdraggetterTypeScriptObject.entriesinstallArray.prototype.filterinternal slotpluginmruFunction.prototype.nameuploadStreamenderfast-deep-copyesrandomnested cssserializationfetchUint16ArrayxhrelectronArray.prototype.containsecmascriptinputdeeppositivepasswordyamlsignedinstallerexecbabelbinarieskoreantypedarraysbinaryrouteuninstallreadablestreamreact-testing-libraryECMAScript 2017speedreadabletypeofclassesgitignorepreserve-symlinkstddstoragegatewayimmutableredactdynamodbsortedbyteLengthaccessorbootstrap lessArrayBufferslicetestsameValueZeropolyfilltouchtransportprogressfilterjestmatchAllRegExp#flagsenvglobal objectwindowselfvalidatorstringqueryweaksetjscheckStyleSheetcall-bindformatcurlsharedarraybuffercompile lesstypanionutilsdatastructurefunctionalregular expressioneslint-pluginstreamFloat64Arraysetterio-tsrecursive[[Prototype]]arrayObjectletmovePushchildcloudfrontroute53ES7xtermES2016figletasyncqsprefixvalidationentriesdropnamehasjQuerytoSortedReflect.getPrototypeOfcjkgetintrinsic@@toStringTagassertsgradients cssvarprotocol-bufferslockfileboundstatelessfullwidthcallbacknativecloudsearchcircularArrayBuffer.prototype.slicehookformfluxJSON-SchemamoduleBigInt64ArraylocalwalkmodulesttysesIteratoriamiterationapiparsereact-componentloadingwhichlivecreatenegative zeroconstworkspace:*ES2021URLSearchParamsprivatecodescompilermanageres6trimomitebsdatel10nsequencebcryptbindeast-asian-widthpyyamltoArraytrimStartdependency manager-0buffersES5BigUint64Arrayes7clientWebSocketslengthtranspileconfigurabletestingdefinePropertypackagesiteratecolorfast-deep-clonereduxInt16Arraypackage.jsonwaittyped arraybusyregexpes8opensslcliTypeBoxECMAScript 3reusemapreduceexpresscomputed-typespromiseString.prototype.matchAlltypesafefscorefnmatchefficientlrunpmInt32Arraylesscsstoolkitvariables in cssfromECMAScript 6popmotionrapidless mixinsstringifyformsfpform-validationdom-testing-libraryargumenthelperlazybyteOffsetformattingredirectcryptoreal-timeSetmkdirssnseslintqueueauthES8structuredClonebannertoobjecthooksspecautoscalingdeep-cloneUint8ArrayArrayidlecloudtrailReactiveExtensionsprototypeemitvalidglaciersharedtypevisualgestureslanguageArray.prototype.flattenpredictableslotelasticachestreamsviewES2017pinoES3es2015bufferinternalString.prototype.trimchannelinterruptsmockingless csslinuxerrormonorepoHyBicallswfbabel-corepatchreducerreducesignalsisawsCSSSystem.globalbrowserlistperformantsetPrototypeOftypeerrorcss-in-jssuperstructbundlerhas-ownfunctionstc39ES2019forEachscheme-validationregularcommandererror-handlingstringifieroptimistless compilerURLdefineflattenspringreadmixinscolourassertiongroupBykeynopewidtha11ycoerciblequotecharacterObservablesflattypedarraynodeurlieECMAScript 2015ec2css variableprocessdataViews3valuesrgbfastifyregexshebangES2018diffvestJSONiteratorroutingbundlingESjapanesehandlerhelperseventEmitteraccessibilitysaferesolveasteriskstrimRightforkshrinkwrapdirectoryescapeclassnamesargvtypesECMAScript 7ECMAScript 2019handlersgetoptcommand-linezodagentes5phoneES2020Array.prototype.findLastexpressionvalidatecore-jschromiumObject.definePropertysigtermexecutetaketerminalobjpropjson-schemasyntaxlocationramdaajv_.extendasserttoStringTagES2015Float32ArrayjsdifftssymbolsECMAScriptcloudwatchgetOwnPropertyDescriptorfile systemutilitieshttpjson-schema-validationcss nestingtelephoneglobal this valuehardlinksisConcatSpreadableObject.valuesreact animationgdprpostcsseverylistenerspushoperating-systemeslintpluginlesssomemergesignaljoihttpsendpointtranspilerworkflowshamweakmaputil.inspectirqdeepcopytrimEndInt8ArrayreactairbnbjavascriptcertificatesdayjsmatchWeakMapquerystringhasOwnPropertyECMAScript 2022__proto__parserlinktoolses-shim APIsyntaxerrorinspectextraminimallintrequestes2016require3donceinvariantajaxuser-streamsless.jssetImmediateclassnameschemajshintRxJSstateautoprefixerponyfillremoveSymbol.toStringTagsettingsES2023pnpm9UnderscorefileservercolumnObservableconcatMapcopypropertiesimportpackage managerspinnerbyteArray.prototype.flatMapUint32Arrayconsolesubprocessharmonyastjson-schema-validatorrdsstarterwriteredux-toolkitUint8ClampedArrayECMAScript 2021chromeencryptionestreeArray.prototype.findLastIndexfpsbddRFC-6455pathproxycacheflagsutilitywarningcolumnspropertyESnextenvironmentsvpcinferencefront-endprotocsswafdeep-copywritablesigintlogginggenericsCSSStyleDeclarationserializerstylesdataexecfilefunction.length
6.13.92

10 months ago

6.13.91

10 months ago

6.13.90

10 months ago

6.13.89

10 months ago

6.13.88

10 months ago

6.13.87

10 months ago

6.13.86

10 months ago

6.13.85

10 months ago

5.13.85

10 months ago

5.13.84

10 months ago

5.13.83

10 months ago

5.13.82

10 months ago

5.13.81

10 months ago

5.13.80

10 months ago

5.13.79

10 months ago

5.13.78

10 months ago

5.13.77

10 months ago

4.13.77

10 months ago

4.12.77

10 months ago

4.12.76

10 months ago

4.12.75

10 months ago

4.12.74

11 months ago

4.12.73

11 months ago

4.12.72

11 months ago

4.12.71

11 months ago

4.12.70

11 months ago

4.12.69

11 months ago

4.12.68

11 months ago

4.12.67

11 months ago

4.12.66

11 months ago

4.11.66

11 months ago

4.11.65

11 months ago

4.11.64

11 months ago

4.10.64

11 months ago

3.10.64

11 months ago

3.10.63

11 months ago

3.10.62

11 months ago

3.10.61

11 months ago

3.10.60

11 months ago

3.10.59

11 months ago

3.10.58

11 months ago

3.10.57

11 months ago

3.10.56

11 months ago

3.10.55

11 months ago

3.10.54

11 months ago

3.10.53

11 months ago

3.10.52

11 months ago

3.10.51

11 months ago

3.10.50

11 months ago

3.10.49

11 months ago

3.10.48

11 months ago

3.10.47

12 months ago

3.10.46

12 months ago

3.10.45

12 months ago

3.10.44

12 months ago

3.10.43

12 months ago

3.10.42

12 months ago

3.10.41

12 months ago

3.10.40

12 months ago

3.10.39

12 months ago

3.10.38

12 months ago

3.10.37

12 months ago

3.10.36

12 months ago

3.9.36

12 months ago

3.9.35

12 months ago

3.9.34

12 months ago

3.8.34

12 months ago

3.8.33

12 months ago

3.8.32

12 months ago

3.7.32

12 months ago

3.7.31

12 months ago

3.7.30

1 year ago

3.7.29

1 year ago

3.7.28

1 year ago

3.7.27

1 year ago

3.7.26

1 year ago

3.7.25

1 year ago

3.6.25

1 year ago

3.6.24

1 year ago

3.6.23

1 year ago

3.5.23

1 year ago

2.5.23

1 year ago

2.5.22

1 year ago

2.5.21

1 year ago

2.5.20

1 year ago

2.5.19

1 year ago

2.5.18

1 year ago

2.5.17

1 year ago

2.5.16

1 year ago

2.5.15

1 year ago

2.5.14

1 year ago

2.5.13

1 year ago

2.5.12

1 year ago

1.5.12

1 year ago

1.5.11

1 year ago

1.5.10

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.4.6

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago