6.9.114 • Published 11 months ago

@taktikorg/cum-commodi-vel v6.9.114

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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('@taktikorg/cum-commodi-vel');

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

loggercloudformationchannelUint32ArrayjsdomMapStreammkdirpprototypewebsitereact-hook-formespreeconsolehas-ownio-tsendpointvalidaterm -fres6chineseassertsharedarraybuffermake dirhasweakseteventEmitterRFC-6455stablefpsbundlerspawnconvertcodesWebSocketsansiflagdescriptorses2017stylechaijapaneseECMAScript 6l10nECMAScript 2018invariantserializercallCSSStyleDeclaration0CSScall-boundES2017jasmineiteratepatchframeworksetPrototypeOfthrottlesameValueZeroredactlockfilevaluedirectorypipeentrieseditorbrowserlistawsES2018globalstartbrowserslisttapcheckec2containssetspeedasynccoercibleeventsjsonvisualHyBies2018styled-componentsdatemru__proto__queueyupvalidationeveryfunctionsconcatPushtypescriptgetoptreact animationininputtestertapewafassertsinternalflattenwordwrapglobalskeyoffsetwaitshimratelimituninstallprivateutillrumonorepotoArraywhatwgYAMLcircularstructuredClonetrimRightvpcdragargvrequestrapidlistenerstakebreakes2015toStringTagObject.keysemrregular expressionmetadata_.extendroute53stringifierArrayhelperflatMapasciiicui18nchromiumSymbol.toStringTagstylingtc39functionreal-timeguidclideletereact-testing-libraryzodminimalECMAScript 2020fastifyBigInt64ArraytrimEndextendspinnernamecommander3dtaskdropiterationbluebirdajaxstatelesshigher-orderwalkingWebSocketlazyimportexportcharsetmulti-packagemapreduceObject.valueslocationESnextecmascriptstreamdatastructurelimitoptimizerpostcssassertionmimetypesutilitymimeArrayBuffer.prototype.slicemomentairbnbequalitystyleguidecmdparsingObject.definePropertymergeES5launchRegExp#flagsTypeScriptECMAScript 2023positiveUint8Arrayeslintconfig-0hookformFloat32ArraycreatetypesUint16Arrayreadablestreamfast-deep-copyloadbalancingpreserve-symlinksspringsnscolorwhichES6iconvURLaccessorworkflowfile systemArray.prototype.flattenprotoreuseoncefullwidthtrimStartsequencedataViewcode pointsArray.prototype.flatfoldercomputed-typesroutetexttimeerrorstarterparentmatchcore-jsavatypeofArray.prototype.flatMapinternal slotenvWeakMapbusylookrequireincludescollection.es6Setdom-testing-libraryduplexsyntaxstringfstouchefficientparserES2021SymbolelasticachevestpushdependenciesvaluesopenerString.prototype.matchAllcommandratepluginescapespeccopyconfigargsflagspolyfillcolourstreams2enderparseMicrosoftwebintrinsicReflect.getPrototypeOfoptionjestfilees2016Promiseworkspace:*autoprefixernodemoveutilitiesesES7optimistTypedArrayamazon$.extendhttpsperformantIteratorisConcatSpreadablepromisewalkpersistenttoolkitqueueMicrotaskES8stdlibJSON-SchemaapicurldefinePropertyconsumebatchtypesafefastclonerandombyteLengthdefinettycorefixed-widthexpressphoneprivate datafastcopyfast-deep-cloneprunenodejscacheopensstringifyhasOwnPropertyECMAScript 7promisescallboundmkdirsworker.envArray.prototype.includestypeerrorjsonpathsimpledbsuperagentwidthmime-dbpropertycall-bindsearchutil.inspectargparseebsbuffernegativeregularshamsliceajvdataviewdotenvthreeelectronarrayfast-clonerecursivetyped arrayprocessredux-toolkitartinference256lintjQuerylanguageparentsnativedirESpropertiestostringtagform-validationappfiltereslintinstallercallbindenvironmentUnderscorepopmotionArrayBuffer#slicesuperstructmoduleslinksetterlogWeakSetlinewraprm -rfexecdeep-cloneanimationiteratorFunction.prototype.nameArray.prototype.findLastrobustrmdires-shimscloneindicatorvalidponyfilleast-asian-widthfull-widthtslibformwordbreakdescriptionpicomatchURLSearchParamsgetOwnPropertyDescriptorstoragegatewayidformatfindLastIndexshellsettingsObject.assignpackagematcheseventDispatchersidearraybuffergdprprotobufimmerenvironmentsECMAScript 5readablepropreactObject.fromEntriesemitclientfindES2019hashargumentsECMAScript 2019setImmediatebannerflatstylesiambrowsercssprogressremovecloudfrontjshintkeyslibphonenumberformattinghardlinksuuidregexcharacterses7domautoscalingqueryinspectArray.prototype.filterglacierforEachjavascriptfullrfc4122immutableObservablewritefunction.lengthgetterbytefromsymbolselbhooksaccessibilitytermisserializationurlsemojiECMAScript 2021geteslintplugincloudwatchBigUint64ArraytypedarraysrangeerrorkoreanexpressionjsdiffcolumnsRxhttpobjcolumnECMAScript 3graphqlclass-validatoragenttypedarrayxdg-openidleomitownoutputposeargumentunicodestreamsprettypostcss-pluginStyleSheetcjkschemewrapmakefunctionalfast-copymappnpm9getPrototypeOfshebanglimitedarktypeprotocol-buffersfigletawaitInt16ArrayjstypanionvarsJSONa11yreducerdynamodbpyyamlECMAScript 2015toolsdayjscloudtrailroutingcss-in-jsreadresolveStreamsObservablesassignserializelogginggenericsasthasOwntestingES2016importtypedscheme-validationFloat64ArraysomereduceformsES2015debugregular expressionsdescriptorreduxmkdirbddwarninggroupBytrimLeftbindArrayBuffercommand-lineidentifierswritabletoSortedgestureschildcallbackdeepexewgetfindLastobjectopenswfdeep-copydiffObject.getPrototypeOftssharedxhrgetintrinsicES2023compilerglobfastboundvariablesArray.prototype.containsES2022joiietrimgroupcollectionTypeBoxsymlinklength[[Prototype]]@@toStringTages8nameshelperses5beanstalkqsdatakarmasessymlinksshrinkwrapString.prototype.trimsyntaxerrorfind-uppathreact posebyteOffsetmoduleInt8ArrayES2020prefixspinnersperformanceObject.isnumberxtermES3enumerablechromeproxydeterministicruntimeObjectexecutablees-abstractObject.entriesextensionnegative zerobundlingReactiveXslotsqsmochalook-upsymbollastes-shim APIconfigurableconcurrencysortedquerystringrgburlsaferegexpterminaltypeECMAScript 2017waapijsxECMAScript 2022characterUint8ClampedArrayloadingreact-hookszerormconcatMapxdgcryptotestcolorsdeepclonedependency managers3telephoneyamlestreenpmpackage managerdeepcopycensorawesomesauceviewInt32Arrayeslint-plugindebuggerReactiveExtensionstoobjectAsyncIterator
5.6.95

12 months ago

5.6.94

12 months ago

5.6.97

12 months ago

5.6.96

12 months ago

5.6.91

12 months ago

5.6.90

1 year ago

5.6.93

12 months ago

5.6.92

12 months ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.38

1 year ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

5.6.89

1 year ago

3.3.57

1 year ago

3.3.58

1 year ago

6.8.104

12 months ago

3.3.59

1 year ago

6.8.103

12 months ago

6.8.109

11 months ago

3.3.50

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

6.8.106

12 months ago

3.3.53

1 year ago

6.8.105

12 months ago

3.3.54

1 year ago

6.8.108

11 months ago

3.3.55

1 year ago

6.8.107

12 months ago

3.3.56

1 year ago

2.1.19

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

3.3.60

1 year ago

3.3.61

1 year ago

3.3.62

1 year ago

3.3.63

1 year ago

5.7.101

12 months ago

5.7.100

12 months ago

5.5.84

1 year ago

5.5.85

1 year ago

5.5.83

1 year ago

3.3.38

1 year ago

3.3.39

1 year ago

6.9.114

11 months ago

6.9.113

11 months ago

6.9.112

11 months ago

6.9.111

11 months ago

6.9.110

11 months ago

5.5.88

1 year ago

5.5.89

1 year ago

5.5.86

1 year ago

5.5.87

1 year ago

3.3.46

1 year ago

3.3.47

1 year ago

5.7.98

12 months ago

3.3.48

1 year ago

5.7.97

12 months ago

3.3.49

1 year ago

3.3.40

1 year ago

3.3.41

1 year ago

3.3.42

1 year ago

3.3.43

1 year ago

3.3.44

1 year ago

3.3.45

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

6.9.109

11 months ago

5.7.99

12 months ago

3.4.69

1 year ago

3.4.63

1 year ago

3.4.64

1 year ago

3.4.65

1 year ago

4.4.82

1 year ago

3.4.66

1 year ago

4.4.81

1 year ago

3.4.67

1 year ago

4.4.80

1 year ago

3.4.68

1 year ago

6.7.101

12 months ago

2.0.15

1 year ago

2.0.16

1 year ago

6.7.103

12 months ago

6.7.102

12 months ago

2.2.30

1 year ago

5.4.83

1 year ago

5.4.82

1 year ago

3.4.72

1 year ago

4.4.72

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.79

1 year ago

4.4.78

1 year ago

3.4.70

1 year ago

4.4.77

1 year ago

3.4.71

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

2.0.9

1 year ago

2.0.10

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

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