3.13.78 • Published 12 months ago

@zitterorg/distinctio-hic-aliquam v3.13.78

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

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

deepcopyredactqueryES3arraybufferequalsameValueZeroECMAScript 2017loggingdayjsES2021dataviewcheckObservableratewhatwgtyped arraymoduleFloat64ArraystringInt16ArrayjoidataViewiamschemaregular expressionstasklimitebs$.extendlogger256recursivetypedkinesisjsonio-tsargparsechannelefficientString.prototype.trimeslintstringifiersqsprivate datacommand-lineformsform-validationparseECMAScript 2021glacierreducePushStreamoptionthroathardlinkselasticacheinstallerworkerextraless.jsprunebrowserlistfullwidthconcurrencyenumerablesharedargvsetliveregexStreamsoffsetsomeeventserrorinternalexit-coderfc4122JSONsymlinksgroupflatautoscalingjstapeemojipredictablereducerec2shimSymbol.toStringTagStyleSheetreuseunicodemacoswalktostringtagArrayBufferdependency managerReflect.getPrototypeOfpnpm9reduxcall-bindeslint-pluginlockfilejwtECMAScript 7error-handlingboundtoobjecturlextendtypescriptArray.prototype.flatMapless cssfast-clonescheme-validationsimpledbES2015numberbuffermkdirpsymlinkcodeshttpsargsincludeslinkautoprefixerECMAScript 6workflowfpsruntimeieidlelinuxwatchArray.prototype.findLastIndexassertionkeysescapesafebootstrap lessjsdiffcompilerdropstylingshebangcss variablelengthvaluestoucheventDispatcherprefixprogressfastcopyauthenticationawesomesauceremovereplaywritenodejsdateresolvetap_.extendUint32ArrayUint8ClampedArraycss nestinguninstallHyBistreams2buffersclassnameasyncbyteLengthstylesheetphoneperformancestatelessperformantfunctiontrimLeftReactiveXreact-testing-libraryObject.assignECMAScript 2023forEachhelperspolyfilltypefullcjk[[Prototype]]privatestdlibcloudformationqueueMicrotaskformattinges6speedsortedajvmixinsfindupRegExp#flagsworkspace:*testmiddlewarestylesoutputendpointlanguageduplexshrinkwrapcolumnarktypepositivebundlerInt8ArrayprocessfastmodulesutilECMAScript 5xtermlrusortowncharacteruplookshelloptimizerpostcss-pluginIteratorlogpipeArray.prototype.flattenjestbyteOffsetpreprocessorslotmomentsideconnecthasOwnexpressionlibphonenumberObject.isexec
3.13.78

12 months ago

3.12.76

12 months ago

3.11.76

12 months ago

3.13.76

12 months ago

3.13.77

12 months ago

3.11.75

12 months ago

3.10.75

12 months ago

3.10.74

12 months ago

3.10.73

12 months ago

3.9.73

12 months ago

3.8.73

12 months ago

3.8.69

12 months ago

3.8.72

12 months ago

3.8.70

12 months ago

3.8.71

12 months ago

3.5.58

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.59

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.5.53

1 year ago

3.8.67

1 year ago

3.8.68

12 months ago

3.8.65

1 year ago

3.8.66

1 year ago

2.3.49

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

3.8.63

1 year ago

2.3.42

1 year ago

3.8.64

1 year ago

2.4.53

1 year ago

2.3.41

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.4.52

1 year ago

2.3.40

1 year ago

2.4.51

1 year ago

3.6.59

1 year ago

3.7.62

1 year ago

3.7.63

1 year ago

3.7.61

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.35

1 year ago

1.3.32

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

2.3.34

1 year ago

1.3.31

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.2.20

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

1.2.16

1 year ago

1.2.17

1 year ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.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