5.5.70 • Published 2 years ago

@hishprorg/voluptatem-tempora-quod v5.5.70

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

String.prototype.trim Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec (both ES5 and current).

Most common usage:

var assert = require('assert');
var trim = require('@hishprorg/voluptatem-tempora-quod');

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

trim.shim(); // will be a no-op if not needed

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

Engine Bugs

Some implementations of String#trim incorrectly trim zero-width spaces. This shim detects and corrects this behavior.

Tests

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

safetoStringTag-0signalperformantes-abstractuploadMapbabel-coreArray.prototype.flatMapmulti-packagenamesglobal objecteslintpluginserializationcurlstylesheetmovepersistentunicoderoute53optionObject.fromEntriesutilcommandtouchjson-schema-validatorregexpasyncUnderscoreString.prototype.matchAllspringnumberpasswordexpressremoveajvamazonclonestringifiersettingsown256lessencryptiondeep-copyasciislotStyleSheetpluginECMAScriptsyntaxerrortc39listenersiterateglobalThisfsomitstyled-componentsglobalsECMAScript 2022equaltypetoReversedcoercibleobject6to5metadatapicomatchyamlwalkmatchesObjectiterationCSSStyleDeclarationhascachepatchURLSearchParamsmobileless cssECMAScript 3assignjsbindminimalbeanstalkflatMapliveendpointxtermcolorfasterror-handlingsyntaxstyleestreeinstalldirectoryuser-streamscloudfrontgradients css3fpsjsdomsettertypeerrorfromES5stableWebSocketsidentifiersObject.isqueueMicrotaskcolumnjsxfunctionaltrimRightexecfilelesscssObject.getPrototypeOfbrowserlistECMAScript 2018hasOwnPropertynegativeless compilerTypedArraydeepcloneelasticachehttpsrulesinternal slotmonorepoworkspace:*es7lockfileweakmapES2023objglobal this valuees6computed-typesformatterminalregular-expressioneffect-tsRxJSfast-cloneswfloadingspawnisjQueryjapanesecollection.es6east-asian-widthshimschemaloggingexecsuperagentassertsreversedwhichdataViewhttphasOwnECMAScript 2021circularimportstructuredCloneclientmodulesECMAScript 7mkdirsmkdirWeakSetsymlinklengthlazyexiteslintirqdotenvlanguageStreamsscheme-validationphonegetPrototypeOfimmertddapolloECMAScript 2015symbolrecursiveansibootstrap lessmergecloudtrailgradients cssextenddependenciesassertionObject.valuesbrowserRFC-6455parsepackage managerArray.prototype.includes3dspinnerYAMLvalidationpyyamls3uninstallregularprotobufcryptecmascriptstylinginimmutableoffsethardlinkszxenderdragforEachcoreESprogressfullwidthcallbindconsolestyleguideoperating-systemconsumeruntimeastUint8ArrayfastcloneassertyupsortedsharedchromestatematchAllreduxIteratorString.prototype.trimcertificatesprettyinterruptscommand-linecallbounduuidgitignoreargsequalitydescriptiongroupByperformancecss variablezeroarraytextSystem.globalECMAScript 2020datanodestreamtypedarrayssigtermhandlersbincssvariablesairbnbStreamTypeBoxES2019sharedarraybufferTypeScriptvestglobdateFloat64ArrayenvchecksnswritehooksxhrJSONdropvaluesreact animationdataviewartbootstrap cssclass-validatorautoprefixerUint16ArrayquerydatastructureES8eslint-plugincloudsearchrouteBigUint64ArrayrdssigintES2020jsdiffcjkrequireescapeindicatorvalidatorawstrimbundlingreact-componentArrayBuffer.prototype.slicefindLastforkresolvezodReactiveXwaapidefineObservablesreadsubprocesstypedprotoECMAScript 5chromiumfunctionsworkerignoregenericsflattenmixinsdescriptorsprotocol-buffersintrinsicpredictablebrowserslistinvariantpreprocessorFloat32ArraytypesafetrimLeftstatelessInt8Arraycss nestingES2022testeslintconfigcall-bindproxyfastcopyfptoolsUint32Arrayproperty[[Prototype]]oncevariables in cssroutingtoobjectES3diffECMAScript 2017exit-codetacitquoteerrorreadablewafrapidoptimistebsArray.prototype.containsflagfiletoSortedshellvalidateprivate dataeverytimesymlinksrobustformattingredux-toolkitelbES7postcss-pluginrgbflagsdependency managersortmacospromisewindowssigneddescriptorpipereadablestreamWebSocketpreserve-symlinkscollectionbufferstslibjshintsetweaksetgetterpropjestpushflux_.extendfullcontainstesterelm0Uint8ClampedArraydeletewritableformstreamsECMAScript 2019serializestatusAsyncIteratormakeoutputObject.entriescodesArrayclassnamebyteOffsetsetImmediateCSSchaicompile lessdeepObject.keysbyteLengthgetintrinsicHyBiECMAScript 2023lastnpmec2arraysdeepcopyinternalutilsless.jsselfdayjspurekinesissesFunction.prototype.namepoint-freeclassnamesfindLastIndexcomparejavascriptreverselintchildArrayBuffer#slicetypesharmonyprefixbundlerfunction.lengthconcatMapreal-timereactformsbytesetPrototypeOfjson-schema-validationfixed-widthless mixinspackagespropertiesarktypehelperrfc4122moduleboundfunctionmapreducehashsomeRxesform-validationcore-jsSymbolhigher-orderemr@@toStringTagObject.assignposenegative zerogetkeyglacieres-shim APIvarsspecfull-widtheventEmittermake dirinstallerschemerandomagentgesturesutil.inspectconfiges8stringifyrfc9562filterclicopyES2021lruworkflowReflect.getPrototypeOfawesomesauce__proto__traversegraphqljson-schemaJSON-SchemacreateObservablefast-deep-clonesequencekeysstyleseventDispatcherserializervalidvisual$.extendtyped arraypnpm9mapslicecss-in-jscallbackpolyfilll10ninputcolorsinspectauthInt32Arraywhatwgcall-boundqses2016viewopensslnodejsreduceajaxes2017stringshebangpostcssclasseswidthcalldeterministictermdeep-clonequeueMicrosoftgdprguidhelperswindowsymbolsramdaexecuteparsingcharacterloggerwarningmomentPushautoscalinghotconfigurableenumerablepositivenamesideglobaltrimEndes2015fastifyspeedi18nutilitysimpledbreducerWeakMaploadbalancinggroupvpcquerystringa11yenvironmentsdefinePropertyes2018parserapispinnersefficientregular expressionwgetESnextbcryptstartertoolkitisConcatSpreadablePromisemkdirpcryptoiamentriesutilitiesES2015eventsconcattypeof
5.5.70

2 years ago

4.5.70

2 years ago

4.5.69

2 years ago

4.5.68

2 years ago

4.5.67

2 years ago

4.5.66

2 years ago

4.5.65

2 years ago

4.5.64

2 years ago

4.5.63

2 years ago

4.5.62

2 years ago

4.5.61

2 years ago

4.5.60

2 years ago

3.5.60

2 years ago

3.5.59

2 years ago

3.5.58

2 years ago

3.5.57

2 years ago

3.5.56

2 years ago

3.5.55

2 years ago

3.5.54

2 years ago

3.5.53

2 years ago

3.5.52

2 years ago

3.5.51

2 years ago

3.5.50

2 years ago

3.5.49

2 years ago

3.5.48

2 years ago

3.5.47

2 years ago

3.5.46

2 years ago

3.5.45

2 years ago

3.5.44

2 years ago

3.5.43

2 years ago

3.5.42

2 years ago

3.5.41

2 years ago

3.4.41

2 years ago

3.4.40

2 years ago

3.4.39

2 years ago

3.4.38

2 years ago

3.4.37

2 years ago

3.4.36

2 years ago

3.4.35

2 years ago

3.4.34

2 years ago

3.4.33

2 years ago

3.3.33

2 years ago

3.3.32

2 years ago

3.3.31

2 years ago

3.3.30

2 years ago

3.3.29

2 years ago

3.3.28

2 years ago

3.3.27

2 years ago

3.3.26

2 years ago

3.2.26

2 years ago

3.2.25

2 years ago

3.2.24

2 years ago

3.1.24

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago