4.6.72 • Published 11 months ago

@hishprorg/nesciunt-impedit v4.6.72

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('@hishprorg/nesciunt-impedit');

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

wafmkdircommanderObject.isfastcloneeventEmitterroutelinkimportexportthreeInt8ArrayinterruptsiterateEScollectioniamvaluesECMAScript 7signalslocationlintcloudtrailAsyncIteratormakedeepqueueelmexpressiteratortoArrayflatMaptypeerrorextendjson-schema-validatorchannelwindowpyyamlcontainsURLSearchParamsreadablestreamshebangprocesshotbindjshintfunction.lengthgesturespropertypnpm9arraybuffereast-asian-width256droptddimportenumerablepicomatchrapidfastcopyreducerfunctionalArray.prototype.flatObject.fromEntriesglobal objectspinnermulti-packageidentifiersIteratoreventDispatchervarcss nestingimmersuperagentjsamazontrimLeftstreamimmutablewarningtranspileutilitiesec2commandspeedpatchautoscalingqueryvarstoolsramdasyntaxerrordynamodbnegative zerocopyYAMLtrimRightstructuredCloneUint8Arrayenvsetterrdscommand-linetypescriptes2018es-shimses5resolveless.jspurehardlinksslotrobustMicrosoft.gitignoredotenvtrimEndformObject.getPrototypeOflivediffweakseteffect-tsArrayBufferuploadsnsiees7fast-deep-clonetypereact-componenttestingrecursivecloudwatchreduxsesfnmatchcomparefastifyRxzxgdprvestmobilees8class-validatorposeschememomentwhichreplayownprivate datakinesisoutputdommoduleECMAScript 2021Array.prototype.findLastchildsetnativeecmascriptreact-hooksnumberhandlerbusymetadatasqspinotostringtagjavascriptopensslregular-expressioncss lessmodulesmkdirsprogressglobal this valueairbnbArrayBuffer#slicelesscssmatchesuninstallstableObservabledeepcopymrufetcheventsconfigurableECMAScript 3variables in cssdragreacttrimes2016react-testing-libraryECMAScript 2019WeakSetdeep-clonecreateArray.prototype.flatMapsignalspecdescriptionignoreform-validationbootstrap lessswfencryptionespreeendpointInt16ArraykeyloadbalancingoptimistrandomstylesdefineProperty.envtypeofbrowserspringsequenceES2021groupBycurriedcertificatesboundbinarysortedajvbrowserslistes-shim APIes2015prefixsomespinnerssharedtelephonemaparraysymlinkschaisignedeslintpluginclientsimpledbinstallharmonyregexrequestruntimereact-hook-formpropstoragegatewaystringifystyleemrmacostypedfullwidthworkerquotewalkTypeScriptwaapisuperstructawesomesaucebannerpluginomitinstallernodejspreprocessorworkflowfile systemcss variableReflect.getPrototypeOfnpmignoreremoveoffsetiskeysindicatorparsedataviewasyncnamesgradients cssglacierutilconsumewriteES6optimizerdataViewmovefindLastReactiveXargvtraversedelete_.extendacorninferenceshrinkwrapestreeeverysetImmediateconcatMapoperating-systema11ytextconsolePushroute53redactvalidationArray.prototype.findLastIndexcoerciblegitignoreflagsprotocol-bufferscryptopackages
4.6.72

11 months ago

4.6.71

11 months ago

4.5.71

11 months ago

4.5.70

11 months ago

4.5.69

11 months ago

4.5.68

11 months ago

4.5.67

11 months ago

4.5.66

11 months ago

4.5.65

11 months ago

4.5.64

11 months ago

4.5.63

11 months ago

4.5.62

11 months ago

4.5.61

11 months ago

4.5.60

11 months ago

4.5.59

11 months ago

4.5.58

11 months ago

4.4.58

12 months ago

4.4.57

12 months ago

4.4.56

12 months ago

4.4.55

12 months ago

4.4.54

12 months ago

4.4.53

12 months ago

4.4.52

12 months ago

4.4.51

12 months ago

4.4.50

12 months ago

4.4.49

12 months ago

4.4.48

12 months ago

4.4.47

12 months ago

4.4.46

12 months ago

4.4.45

12 months ago

3.4.45

12 months ago

3.4.44

12 months ago

2.4.44

12 months ago

2.4.43

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.4.40

1 year ago

2.4.39

1 year ago

2.4.38

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

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