3.13.78 • Published 2 years ago

@zitterorg/distinctio-hic-aliquam v3.13.78

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('@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

2 years ago

3.12.76

2 years ago

3.11.76

2 years ago

3.13.76

2 years ago

3.13.77

2 years ago

3.11.75

2 years ago

3.10.75

2 years ago

3.10.74

2 years ago

3.10.73

2 years ago

3.9.73

2 years ago

3.8.73

2 years ago

3.8.69

2 years ago

3.8.72

2 years ago

3.8.70

2 years ago

3.8.71

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

2 years ago

3.6.61

2 years ago

3.6.60

2 years ago

2.3.39

2 years ago

2.3.38

2 years ago

2.3.37

2 years ago

2.3.36

2 years ago

2.5.53

2 years ago

3.8.67

2 years ago

3.8.68

2 years ago

3.8.65

2 years ago

3.8.66

2 years ago

2.3.49

2 years ago

2.3.46

2 years ago

2.3.45

2 years ago

2.3.48

2 years ago

2.3.47

2 years ago

3.8.63

2 years ago

2.3.42

2 years ago

3.8.64

2 years ago

2.4.53

2 years ago

2.3.41

2 years ago

2.3.44

2 years ago

2.3.43

2 years ago

2.4.52

2 years ago

2.3.40

2 years ago

2.4.51

2 years ago

3.6.59

2 years ago

3.7.62

2 years ago

3.7.63

2 years ago

3.7.61

2 years ago

2.3.51

2 years ago

2.3.50

2 years ago

2.3.35

2 years ago

1.3.32

2 years ago

1.3.33

2 years ago

1.3.34

2 years ago

2.3.34

2 years ago

1.3.31

2 years ago

1.2.30

2 years ago

1.2.31

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.23

2 years ago

1.2.24

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.27

2 years ago

1.2.28

2 years ago

1.2.25

2 years ago

1.2.26

2 years ago

1.2.29

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

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