1.0.0 • Published 1 year ago

@a-2-c-2-anpm/illum-incidunt-magnam v1.0.0

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

@a-2-c-2-anpm/illum-incidunt-magnam Version Badge

github actions coverage License Downloads

npm badge

An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3.

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

Because the Iterator.prototype methods depend on a receiver (the this value), the main export in each subdirectory takes the string to operate on as the first argument.

The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.

Supported things

Getting started

npm install --save @a-2-c-2-anpm/illum-incidunt-magnam

Usage/Examples

const map = require('@a-2-c-2-anpm/illum-incidunt-magnam/Iterator.prototype.map');
const toArray = require('@a-2-c-2-anpm/illum-incidunt-magnam/Iterator.prototype.toArray');
const assert = require('assert');

const iterator = [1, 2, 3].values();

const mapped = map(iterator, (x) => x + 10);
assert.deepEqual(
	mapped.next(),
    {
        done: false,
        value: 11,
    }
);
assert.deepEqual(
    toArray(mapped),
    [12, 13]
);
require('./auto'); // shim all of the methods

require('./Iterator.prototype.map/auto'); // shim the “map” method

Tests

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

parentssuperstructslicebrowsercurlslotinstallerjavascriptpackage.jsonECMAScript 2020espreeformsweaksetscheme-validationinternalqsmobileapolloaccessorArray.prototype.flattenstyleinputelmwafes2015stableclassesObject.assignhas-ownloggerRFC-6455lookcommandkeytraverseparentperformancegettergraphqlcode pointsshamlesshookformmkdirpdebuggerformYAMLtoolssymlinkstapecall-boundschemeArray.prototype.filterunicodesetterreal-timeweakmaplinkcss lessFunction.prototype.nameframeworkmkdircharacterspipebrowserslistavanodejstextObjectopenECMAScript 2023propertiessnsES6css nestingstringsidepackage managerterminallook-upES3japaneseES2020fetchratelimitelasticacheastindicatorcryptwatchFileonceiterationec2queuehotRxcreatereact-testing-libraryconsumedeepes2016optionWeakSetfromeventskinesisrangeerrorArrayprunepreserve-symlinksstringifyclass-validatordescriptorsrfc4122typanionincludesthrottlelengthbyteLengthclonecirculartypeprogressquerystringsesecmascriptMapcodesargvtestio-tsproxyautoscalinginObservablesgroupBydescriptoroptimistoptimizercloudtrailcolourescapefastjsonES7fpssymlinkassignES8less mixinsStreamserrorhasOwnPropertyjsxobjArray.prototype.includesjsloadbalancingtrimEndeventEmitteransiequalityshrinkwrapWeakMaploadingnamesassertsmulti-packageebsnativeWebSocketString.prototype.trimworkflowkarmamruECMAScript 2018cligdprUint32ArrayBigInt64ArrayspeccallboundjsdomvpcsameValueZerormyupstreamnested cssamazonbddomitendpointmochatoobjectvaluesextraFloat64ArraystyleguidewalkeventDispatcherdataviewgetoptfastifystatelessstreams2utilrobuststatediffsetasyncinvariantInt16ArrayArray.prototype.containschromiumlistenersnegativedomurlES2021trimRightpasswordes2018fileECMAScript 7reuseObservableflattenwhatwgidleHyBinodeenvironmentbundlingwgetcallbindES2023mapreducees2017eslintsequencecompilerwatchObject.valuesroutingES2017typeoftddObject.definePropertywidthentriesduplexawesomesaucefsinstallvariablescompile lessArrayBufferreplayaccessibilityarraybufferhardlinksmakefunctionalendercolorsownenvreducevalidateless cssextendfind-upartimportexportprotobufcloudwatchruntimegradients css3wordbreakspeedchromepropertyloggingStyleSheetbannerinternal slottelephonesetPrototypeOfemitfindupreadfindLastform-validationES2015phonecopyUint8ClampedArrayhttpspositivecolumnfile systemworkerresolveformattingregexprivatextermparseSymbolRegExp.prototype.flagsparsingECMAScript 3toolkitReflect.getPrototypeOfmkdirsrequestairbnbWebSocketsgetOwnPropertyDescriptorcomputed-typesdom-testing-libraryforEachPushwhichsymboldefinePropertynegative zeroRxJStyped arrayes5checkECMAScript 2019spinnersdatastructuregetintrinsicl10nfixed-widthArray.prototype.findLastequalInt8ArraytrimmovedebugBigUint64Arrayexpressionbusyfullnamesqssimpledbgroupextensionprivate datajsdiffcharactercachebootstrap lessprettyrm -frfast-clonejasmineargumentvalidationcallbackutilitiestestermatchesttyclassnamesschematypedarraysbluebirdUint8Arraycss-in-jssortedconnect256figletstdlibUint16Arrayes-shimsArray.prototype.flatnopehashtrimLeftJSON-Schemadeep-clone[[Prototype]]__proto__importECMAScript 2015cloudsearchiamlazymomentroute53mergemime-dbauthenticationfull-widthes-shim APIinspectAsyncIteratorhttppackageESdeep-copymodulesawaitkeystoSortedObject.isstructuredCloneconcurrencyArrayBuffer#slicepromisecensorshimcolumnsInt32Arrayemrdeterministic-0TypedArraytypedratereadablestreamECMAScript 6walkingStreamboundbootstrap cssserializeprototypeeshigher-orderSymbol.toStringTagECMAScript 2022cssfast-deep-copyarktypegetargswatcherxhrupmoduleeslint-pluginformatlocationconfigurableFloat32Arraysymbols@@toStringTaglintflagcors
1.0.0

1 year ago