4.6.72 • Published 2 years ago

@hishprorg/nesciunt-impedit v4.6.72

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

2 years ago

4.6.71

2 years ago

4.5.71

2 years ago

4.5.70

2 years ago

4.5.69

2 years ago

4.5.68

2 years ago

4.5.67

2 years ago

4.5.66

2 years ago

4.5.65

2 years ago

4.5.64

2 years ago

4.5.63

2 years ago

4.5.62

2 years ago

4.5.61

2 years ago

4.5.60

2 years ago

4.5.59

2 years ago

4.5.58

2 years ago

4.4.58

2 years ago

4.4.57

2 years ago

4.4.56

2 years ago

4.4.55

2 years ago

4.4.54

2 years ago

4.4.53

2 years ago

4.4.52

2 years ago

4.4.51

2 years ago

4.4.50

2 years ago

4.4.49

2 years ago

4.4.48

2 years ago

4.4.47

2 years ago

4.4.46

2 years ago

4.4.45

2 years ago

3.4.45

2 years ago

3.4.44

2 years ago

2.4.44

2 years ago

2.4.43

2 years ago

2.4.42

2 years ago

2.4.41

2 years ago

2.4.40

2 years ago

2.4.39

2 years ago

2.4.38

2 years ago

2.3.38

2 years ago

2.3.37

2 years ago

2.3.36

2 years ago

2.3.35

2 years ago

2.2.35

2 years ago

2.2.34

2 years ago

2.1.34

2 years ago

2.1.33

2 years ago

2.1.32

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.0.7

2 years ago

1.0.6

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