2.4.65 • Published 12 months ago

@zitterorg/pariatur-ad v2.4.65

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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('@zitterorg/pariatur-ad');

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

ESnextECMAScript 2020streamserializationhelpersnamesPush_.extendforEachcharactersinatratrimStarttransformfunctionalchromequerystringstringifyiteratelanguagevarsansiUint16Arraymapreducereal-timeapolloshamtypedarrayObject.assignsnsstoragegatewaypipewindowkeyBigInt64Arrayrestesreades2015istanbulinstrumentationfast-deep-copyeslint-pluginWeakMapAsyncIteratorcolumnses5regularmergecollectionsliceinternal slotmatchescoveragemonoreposettergettergrouptoSortedjson-schema-validationUint32Arraytrimglobal objectkarmaJSON-SchemasafeUint8ClampedArraycommandwalkreadablestreamlastReactiveXfile systemoptimistfscloudtrailoutputlocalES5iteratorcompilernumberfast-copyserializertestnodepluginrssignoreargvcolumnfunctionerrorenvironmentsproptakespeedWeakSetreverseCSSStyleDeclarationIteratorbrowserhelperpackage managerposeMapvariablesECMAScript 2015regexwhatwgreactvaracornpropertieslengthviewECMAScript 2018validatees-shimsfromhas-ownwebYAMLbrowserlistzodstyleguideECMAScriptforkroutebuffersautoprefixerequalsymlinkselectronawesomesauceprogresshttpsutility256full-widthpicomatchuuidObjectdescriptorsdynamodbidentifiersObservabletypeBigUint64ArraygetsyntaxerrordiffpushSetSymbolponyfillpatchECMAScript 7visualObject.valuesexecutecloudformationatomwhichsortECMAScript 2023rgbfindLastcodesglobalsenvasynccomputed-typesflatteneslinthardlinkses7isConcatSpreadablegenericsschemapyyamlargsfigletcallback6to5ES2017ECMAScript 5l10njsdomlistenersrandomintrinsicCSSreact-hook-formassignqueueMicrotaskcalluninstallObject.keysdebugexpressionnpmschemeArray.prototype.containsES7deep-clonexhrRxJSloadbalancingform-validationselfES8protobufsetPrototypeOfparentvaluesURL__proto__nodejsmobileloggerbddajvcurlyamljshintcheckcircularFloat32Arrayletgraphqlpruneamazon.gitignoreagentroutingdroppolyfilltoStringTagES2015hookformrangeerrorinstallwaitglacieriamclassesbusysameValueZerochildcss-in-jstimeweakmapchineserm -frUint8ArrayextendfpString.prototype.trimES2016Object.fromEntriescloudfrontpromisecensorreduxstringInt32Arrayimportchaicryptosubprocessfast-clonegdprfind-upclonees83dlockfileweaksettypescriptttyjsxcloudsearchdomArray.prototype.includesfilterprettymochaRegExp.prototype.flagswarningnativetypedmkdireast-asian-widthnegative zero-0guidtddfullwidthArray.prototype.flatMapmruObject.issettingsmapimmeres-abstractURLSearchParamshasOwnPropertyjoiformsutilobjecttypesafeserializeWebSocketSystem.globalswfphonejapanesedataviewregular-expressiontranspilerfindLastIndexindicatorwgetarktypeeslintpluginrapidastenvironmentlibphonenumberawsperformancechromiumconsoletranspilesource mapmkdirpcommanderutilitiessqsObservablesfnmatchreducerartdeletetostringtagsuperagentreact animationshellconfigurableyupRFC-6455regexpstylingmoduleslookdirfastifyfixed-widthpositiveshimstyled-componentselbzeroownrequesthashexecfilefast-deep-cloneunicodestringifierqueryeventDispatcherES2020flatMapajaxstructuredCloneemojiestreetaprouterdataresolvebundlingcurriedkoreanmulti-packageassertsmodulereact-testing-librarymakesymbolsESentriesArray.prototype.flattensimpledbomitprotosharedarraybufferescapeframersideautoscalingFloat64ArrayemrTypeBoxanimationincludesgetOwnPropertyDescriptorcloudwatchnegativeproxyrdstacitcharactersjsArray.prototype.filtervestcallbindterminalArrayBuffer#sliceavaTypeScripttypedarraysfeedes6regular expressionswritableInt16ArraydatevaluevalidatorinvariantglobalArrayBufferdeepcopykeysidleES6folderrequire0JSONperformantbabel-corepinoECMAScript 2017parserString.prototype.matchAllaccessibilityvpcArrayfulldragextratoolkittexttrimLeftdeep-copyflagvalidationframeworkieregular expressionboundsetreusetypesparseworkspace:*UnderscorecolorsbinariesjQuerypackageruntimeuser-streamsfunctionsmomentprivateecmascriptStreamsmake dirstyleseslintconfigwalkingcall-bindec2packagesbyteLengthECMAScript 3loadingramdaglobal this valuesuperstructisMicrosoftclassnamesstylermfindECMAScript 2022reversedxtermHyBishrinkwrappoint-freedefineES2022offsetSymbol.toStringTagebsendpointsesgetPrototypeOfchannelsetImmediateES2021scheme-validationArray.prototype.findLastIndexcopytelephonebytereworkreact poseinstallerappformattingdeepclonegitignoreworkerprototypetypeofclass-validatorgesturesi18nES2019PromiseconstStyleSheetObject.entriesWebSocketses2018prefixgroupBylinttrimRightconcatMaploggingsymboldescriptionECMAScript 2019command-lineinformtermdom-testing-libraryexpresstyped arrayhigher-ordercachejson-schema-validatorredux-toolkitarraybufferqscompareArray.prototype.flatjsdiffReactiveExtensionsArray.prototype.findLastminimalcreatejavascriptequalitylinkObject.getPrototypeOfbyteOffsetemitclistarterglobalThisTypedArrayprotocol-buffersES2018es-shim APIoncefpsfetchformatclientassertimmutableECMAScript 2016private datafastarrayselasticachedeterministicshebanghttputil.inspectstreamscjkeveryhtmlstabletypanionglobreducecoerciblets$.extendtoArraytoolsa11yrmdir[[Prototype]]traverseReflect.getPrototypeOfdefinePropertylook-upinput.envutils@@toStringTagtapesyntaxcoretc39toReversedfantasy-landconsumedotenvbrowserslistwafreact-hookscontainsarrayreadableoptimizerasciipostcssrestfultoobjectbinarymatchAllfastcopyArrayBuffer.prototype.sliceaccessorzxpathflagsdirectorysearchairbnbs3haseffect-tsfastclonefilebufferparentslocationxmltransportjsonschemapureeventEmittertypeerrordependencieswidthpackage.jsonbeanstalktouchES2023popmotionfindupmetadatamanipulationinspecteventsrecursivebannerqueuedependency managercall-boundenderdataViewwaapiredacthasOwnworkflowjsonECMAScript 2021Rximportexportbindeepcolorspinnerscollection.es6code pointsthreenopelrudebuggerspringassertionclassnamejson-schemaES3rfc4122hookspropertycore-jsECMAScript 6getintrinsictrimEndredirectkinesisconfigInt8Arraymovebindexecjestpnpm9testerprocessquoteharmonyapiroute53Object.definePropertyinferencejasminegetoptiddayjsspinnerrm -rfefficientStreamwriteremovetestingspawnes2017internalnameconcatmanagercolourmatchflatenumerablees2016sortedasterisksrulessharedargumentRegExp#flagsobjbabeloptiondescriptorspecnpmignorecallboundupio-ts
2.4.65

12 months ago

2.4.64

12 months ago

2.4.61

12 months ago

2.4.63

12 months ago

2.4.62

12 months ago

2.4.58

12 months ago

2.4.59

12 months ago

2.4.60

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.4.55

12 months ago

2.4.54

12 months ago

2.4.53

12 months ago

2.4.52

12 months ago

2.4.51

12 months ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.30

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

2.4.49

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

2.3.47

1 year ago

1.3.35

1 year ago

1.3.36

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

2.4.50

12 months ago

1.3.39

1 year ago

1.1.16

1 year ago

1.3.37

1 year ago

1.3.38

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.3.42

1 year ago

1.3.43

1 year ago

1.3.40

1 year ago

1.3.41

1 year ago

1.3.46

1 year ago

1.1.23

1 year ago

1.3.47

1 year ago

1.1.22

1 year ago

1.3.44

1 year ago

1.1.21

1 year ago

1.3.45

1 year ago

1.2.33

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.15

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago