2.0.2 • Published 1 year ago

@juigorg/voluptates-aperiam v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@juigorg/voluptates-aperiam Version Badge

dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant String.prototype.endsWith shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Because String.prototype.endsWith depends on a receiver (the this value), the main export takes the string to operate on as the first argument.

Other polyfills for String.prototype.endsWith are available:

Installation

Via npm:

npm install @juigorg/voluptates-aperiam

Then, in Node.js:

var endsWith = require('@juigorg/voluptates-aperiam');
<script src="https://bundle.run/@juigorg/voluptates-aperiam"></script>

NOTE: It's recommended that you install this module using a package manager such as npm, because loading multiple polyfills from a CDN (such as bundle.run) will lead to duplicated code.

Notes

Polyfills + test suites for String.prototype.startsWith and String.prototype.contains are available, too.

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.

Tests

Simply clone the repo, npm install, and run npm test

sesrsspureargumentgetintrinsicincludesjsdiffbinariesemitprotocol-buffersmulti-packagearraybuffervisualECMAScript 3browserweaksetes-abstractjsxes5rgbindicatorroutechanneltestdom-testing-librarywalktypesjoicryptotakeexecfileutilitytelephoneshebangYAMLwritableWeakMapECMAScript 2016ecmascriptES2020terminalnpmignoreHyBicall-boundsameValueZerovestutilsprocessinstrumentationglobalsoptimistrapidmovekeycomputed-typesperformanceJSON-SchemaqueryObject.valuesviewproxylintreact-hooksES2016findLastIndexflatMapquerystringbindsharedruntimeefficientautoprefixergitignoreawsendpointsetImmediateES2021formatrmdirdayjscommanderbuffertestingaccessibilityzxperformantECMAScript 2021escapees-shimsES6waffastcloneArrayBufferStreamsspringbyteLengthatomRegExp#flagsnumberregexpchineserouterbyteOffseteffect-tsmkdirssuperstructmergefpdefinePropertydragprotobufreducer6to5trimStartString.prototype.matchAllrequirepackage.jsonnativeasyncpropertydynamodbutilitiestoReversedObject.keysrdsArray.prototype.includesschemekarmadeepparentshasOwnBigUint64ArraychromiumcreateECMAScript 6omitES2022posefile systemObject.entriesgdprpostcss-pluginestreetrimwindowiterateownbabelECMAScript 2022Uint32ArrayprototypetoolsvarsframertacitlruqsvalidzerorobustgetgraphqlAsyncIteratorpicomatchassignassertionstringifierinspectpropertiesagentreadablestreampolyfillfastifyes2016nodeIteratorimmutablemkdiruser-streamsapollodeep-copyreact poseunicodeconfigelectronpromisescheme-validationrulesfetchpackageextendautoscalingdatatype__proto__weakmapreact-testing-libraryfunction.lengthdeleteArray.prototype.findLastpackagesmatchphoneebsArray.prototype.flattendebugdiffidcurlBigInt64Arrayjson-schemaglacierswftoSortedexpressfullacornrestFloat32ArrayreworkcallbindjQuerykinesisnegative zerocirculareventEmitterastwhichWebSocketssource maplocationreversecallboundes2015emojivaluesECMAScript 2018route53fullwidthprefixECMAScriptpnpm9typedarraysexectostringtaginternaldescriptorReactiveExtensionsdeep-cloneponyfilldataviewcloudfrontESbannerimportexportsearchexecutesymbolsrequestramdagroupByamazones-shim APIcloudwatchassertscurriedconfigurablemapreduceoptionhelpersURLSearchParamsfast-deep-cloneserializereact-hook-formistanbulESnextECMAScript 7es7iteratorrecursive.gitignorextermlastutil.inspectObject.fromEntriesargvFunction.prototype.nameenderjson-schema-validationanimationguidreact animationString.prototype.trimtranspilebundlingsinatraprettysafecloudformationmkdirpzodajaxES8transportfilehttpsawesomesaucenpmpropshimminimalinreduxstylinglook-upisConcatSpreadabledirectoryhigher-orderspeederrorbusyelasticachecall-bindansioncecheckaccessor256ttyutilObject.definePropertyrmlogstreamschromeUint16ArrayhtmltraverseclassnameUnderscorevariableshookformappserializationparentsideflagsvalueclienttypescriptes6typeofrandomObject.getPrototypeOfTypeScriptCSSuuidsimpledbtc39matchesvares2018CSSStyleDeclarationsnseventsgetoptharmonywritevpctypeerrorec2MapgetPrototypeOfdateArrayBuffer#slicefull-widthtypesafefnmatchcontainsexpressionObservableequalpoint-freetranspilerloadingtrimLeftworkerjsonworkspace:*cliflagcallbacki18npathoutputsubprocessregularformreal-timeTypeBoxtapgesturesfunctional@@toStringTagsetterECMAScript 2017concatMaphashtypanionvalidationrangeerrorqueueeslintpluginES2018clone
2.0.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago