6.9.114 • Published 10 months ago

@taktikorg/cum-commodi-vel v6.9.114

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

11 months ago

5.6.94

11 months ago

5.6.97

11 months ago

5.6.96

11 months ago

5.6.91

11 months ago

5.6.90

11 months ago

5.6.93

11 months ago

5.6.92

11 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

11 months ago

3.3.57

1 year ago

3.3.58

1 year ago

6.8.104

11 months ago

3.3.59

1 year ago

6.8.103

11 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

11 months ago

3.3.53

1 year ago

6.8.105

11 months ago

3.3.54

1 year ago

6.8.108

11 months ago

3.3.55

1 year ago

6.8.107

11 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

11 months ago

5.7.100

11 months ago

5.5.84

12 months ago

5.5.85

11 months ago

5.5.83

12 months ago

3.3.38

1 year ago

3.3.39

1 year ago

6.9.114

10 months ago

6.9.113

10 months ago

6.9.112

10 months ago

6.9.111

10 months ago

6.9.110

10 months ago

5.5.88

11 months ago

5.5.89

11 months ago

5.5.86

11 months ago

5.5.87

11 months ago

3.3.46

1 year ago

3.3.47

1 year ago

5.7.98

11 months ago

3.3.48

1 year ago

5.7.97

11 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

11 months ago

3.4.69

12 months ago

3.4.63

1 year ago

3.4.64

1 year ago

3.4.65

1 year ago

4.4.82

12 months ago

3.4.66

1 year ago

4.4.81

12 months ago

3.4.67

1 year ago

4.4.80

12 months ago

3.4.68

12 months ago

6.7.101

11 months ago

2.0.15

1 year ago

2.0.16

1 year ago

6.7.103

11 months ago

6.7.102

11 months ago

2.2.30

1 year ago

5.4.83

12 months ago

5.4.82

12 months ago

3.4.72

12 months ago

4.4.72

12 months ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

4.4.76

12 months ago

4.4.75

12 months ago

4.4.74

12 months ago

4.4.73

12 months ago

4.4.79

12 months ago

4.4.78

12 months ago

3.4.70

12 months ago

4.4.77

12 months ago

3.4.71

12 months 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