1.0.0 • Published 12 days ago

@crabas0npm/ipsum-nihil-quae v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

@crabas0npm/ipsum-nihil-quae 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 @crabas0npm/ipsum-nihil-quae

Then, in Node.js:

var endsWith = require('@crabas0npm/ipsum-nihil-quae');
<script src="https://bundle.run/@crabas0npm/ipsum-nihil-quae"></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

ArrayBufferartelectronhookformqueueMicrotasksanitizedropAsyncIteratorunicodeWebSocketPromiseisConcatSpreadableclimoduleshimmergelognegative zeroxhrwidthFloat32Arraycall-bindmkdirskeyecmascriptparentclass-validatorES2020exit-codequotecryptochannelfixed-widthsetPrototypeOfbrowserslistvisualregular expressionswaitbundlingES2022ECMAScript 2022purepropertydateismochafullwidthcollection.es6taptyped arraydatastructurevarfunctioncss-in-jsbuffersflatMapasyncappescapegradients cssinstallbrowsertrimRightconfigclientmetadatadeterministicconcurrencyIteratorESyupes-shim APIWeakSetflagsES2017prefixHyBiextraWeakMaprfc4122chinesesymbolnpmdomtypedarraysclonetypeerrorletclassessymlinkseventEmitterJSONuninstall_.extendmake dirxdgtrimLeftstringavawordbreakemojiratelimitcomparepluginString.prototype.trimidObservablesapipackagesbatcharraybufferrangeerrorpyyamlfastifyinferencecode pointsestreeECMAScript 2021writablexssaccessibilitycallbindless csslanguagecall-boundpackagejsonschemaES7zerofastajvtoSortedpicomatchgetvestinvarianttypesafeECMAScript 3sideshrinkwrapgetoptObject.isdiffreducerstringifiercreatebrowserlistStreamdirectorygroupBy6to5enderequalitywhichregularObject.definePropertyansiArray.prototype.findLastIndexiterationprototypeiteratorwriteserializationpreserve-symlinksspecregexphigher-orderi18ndependency managerautoprefixersignalsjavascriptimmerlibphonenumberspeedjsdiffjson-schemargbinternal slotcontainsarraysbootstrap lessstylesES5ES8matchObjectdragdeeptddnopehttpsfromurlwrapbabel-coremulti-packagematchAllObject.getPrototypeOfpromisecensorcheckES6ECMAScript 2020Symbol.toStringTagESnextrapidmimenativemkdirpintrinsicprettyformattingmakeformscurldotenvthreefast-deep-clonedescription$.extendstructuredCloneponyfillweaksetcss lesspatchsymlinkchromecallboundfile systemsetImmediateJSON-Schemataskfast-deep-copyeventstslibnamescommanderindicatorRxJSfast-copyMapkarmaspinnerspersistentutilitystreamsbufferpackage managerdeepcloneiteratedependencieserror-handlingcachesetjQueryes6lastBigUint64Arrayschemacommand-linebluebirdspawnCSSStyleDeclarationshellclassnamereal-timewatching0compilertypedarrayECMAScript 7optimizersharedarraybufferwalkdescriptorstypescriptRegExp#flagscollectioncompile lesstestformbindarktypeObject.entriessharedlintdeep-copybannerworkerdefineeventDispatcheres-abstractpromisesl10nPushstreams2hardlinksinstalleropenseditorArrayBuffer.prototype.slicetapefindLastboundfullincludesmomentcallbackobjObject.assignhaseslintconfigpostcss-pluginrateES2021nested cssconnectfolderlesscssstartminimalrmtranspilelook-upmonorepo@@toStringTagtc39resolvelengthsyntaxmovechaireadgradients css3colorsnodejsutilstoolkita11ycallObservableconstsearchArray.prototype.includeslinkcomputed-typesfilereact animationes2015reduxdeletematchesemitUnderscoreoptionconsolees-shimsidlerobustqueryfind-upfseventsless.jsObject.fromEntriesstylesheetnegativeonceObject.valuesdeepcopytakevalidYAMLestester256duplexlinuxinspectreadablestreamdataexpressimportgenericsURLoperating-systemastcolorparsehelperscodesECMAScript 2015lockfileenvArray.prototype.findLasttranspileromittimefindupmkdirvariables in cssECMAScript 6es8Float64ArrayexecutabledayjstoolsFunction.prototype.namefastclonelookInt8Arrayjson-schema-validationrequirefunctionsinterruptssomeECMAScript 5propgetintrinsicpreprocessorpushES3ES2016pipeArray.prototype.filterslicerm -frtypesoffsetworkspace:*definePropertyrandomwarningjspathbootstrap csshashargsasciistylingreact posesymbolsmacosprogressreact-testing-librarywatchertrimStartcssxdg-openvalidatorloggerSetECMAScript 2017shamqsdebuggerargumentsBigInt64Arrayreact-hook-formArray.prototype.flatexecfsflagless mixinsconcatMapuser-streamswatchFileutil.inspectnumberargparseclassnamesaccessortoArrayramdalaunchserializertacitopenperformantReactiveX__proto__fantasy-landargvprocesssanitizationcoercibleoptimistlimitglobsuperstructECMAScript 2019dataViewjsdomremovegroupquerystringgdprpasswordwebsitestyledefaultruntimesortgetPrototypeOf.envStyleSheetjasminevalueschromiumyamltsprotocol-buffersvieweverycommandreducefast-cloneauthenticationschemereact-hooksjestbabelpnpm9hasOwnwgetflattelephonefastcopytoStringTagparserstreamqueuekoreanes7webArrayBuffer#slicevariablesjoitypedzodgesturesCSSloadingcircularerrorpositivekeysawaitconcatguidenumerableimmutableshebangexeweakmapfetchInt32ArraycjkjwtielistenersgraphqlECMAScript 2016terminal[[Prototype]]touchsuperagentURLSearchParamscharactervaluestatusRFC-6455mruextendeslint-pluginwaapipostcssregexredux-toolkites2017fpconfigurablepolyfillbyteOffsetdataviewtoobjectarrayprotobufencryptioncss nestinghooksrequestvalidateUint16ArrayUint32ArrayupbcryptslotmiddlewarebusyposesameValueZeroexitTypedArrayparentsutilitiesdebugredactgettertextprivateassertscolumnsinternalES2019styleguidesettingstrimmodulesassertionphonelrupropertieslessprunestringifytermobjectes2016flattenlazydirregular expressionwindowsvalidationscheme-validationObject.keysoutputbundlerlimitednameajaxArray.prototype.flatMapsetterInt16Arraycryptmapirqless compilerttyconsumewordwrapMicrosoftpackage.jsoncoloureslintpluginjsxspinnermobilefull-widthdom-testing-librarystarterhandlersTypeScriptstyled-componentsreadableframeworkjapaneseWebSocketstypecopyprotoES2018-0urlssignaljson-schema-validatorequalreactsyntaxerrorio-tsdeep-cloneuuidsigtermfunctionalUint8ArrayforEachharmonymixinstypanioncorsmimetypeschildRxsequencetestingmime-dbrmdirthroatStreamsfindLastIndexframertraverseReflect.getPrototypeOfassignsortedexpressionassertopenerRegExp.prototype.flagscolumnawesomesaucefindlinewraploggingapollorecursivecore-jsformatReactiveExtensionsform-validationfigletauthfilterES2023performancewatchstableECMAScript 2018entriesdescriptoranimationnodereuseSymbolES2015tostringtagUint8ClampedArrayextensionjsonpathairbnbpopmotioneast-asian-widthbddes5argumentspringwalkingcurriedhttp
1.0.0

12 days ago