Licence
MIT
Version
1.0.0
Deps
2
Size
19 kB
Vulns
0
Weekly
0
@ajhgwdjnpm/vel-optio-earum 

A modern JavaScript tooling library for asynchronous operations using async/await, promises and async generators.
This library is a modernized alternative to a lot of libraries like Async.js that were created using the legacy callback style to handle asynchronous operations. Its goal is to be as complete as any of those libraries while being built from the very beginning with async/await and promises in mind.
- Exclusively uses async/await, promises and async generators in its code, tests and documentation.
- Has low bundle size.
- Has 100% code coverage.
- Bundled for ESM modules, CommonJS and UMD.
- Works in node >= 8 and in the vast majority of browsers (very old browser compatibility can be achieved using Babel and shims).
- Has Typescript support.
Installation
npm install --save @ajhgwdjnpm/vel-optio-earum
Or use jsDelivr to get the UMD version. The content of the library will be available under the modernAsync global variable.
Usage
import { asyncMap, asyncSleep } from '@ajhgwdjnpm/vel-optio-earum'
const array = [1, 2, 3]
const result = await asyncMap(array, async (v) => {
await asyncSleep(10)
return v * 2
})
console.log(result)
See the documentation for the rest.
Migrating from version 1.X to version 2.X
Changelog
Contribution Guide
License
Keywords
call-bindSettypethrottleformatcontainstoSortedterminalspinnersmime-dbcompilerdiffgroupmixinsxtermopenses-abstractlibphonenumbertranspilernpmutilitycommandergradients cssrecursivedebuggertskeyses-shimses7trimguidStyleSheetramdaFloat64Arraypackage.jsonIteratorlogflatMapinputbrowserslistdescriptionperformantexpressionreduxES3shambusymoduleschromecircularutil.inspectwatchhelperscomputed-typesbundlerfind-upbluebirdutilshardlinksnativeconsumemimecall-bounddeepclonebrowserlisteslintpluginvariablesweakmapserializertouchexpressdeletelimitedrapidArraycallbackESregular expressionnopecommand-linechaichannelextraspeedtrimRightInt16ArraygroupBytakeremoveredactincludesequaltrimStartbannerprefixbootstrap lessphonebootstrap cssvarprivate datamkdirpCSSresolvetraverseReactiveXhigher-orderargumentserrorpyyamlopenrangeerrorfullprettyUnderscorearray-0issignalzodmakeloadingpatchxsserror-handlingslicehashcollectionchildirqimmutablepackagesmiddlewarecmdparseframeworkassertwebsetterratePromisestreamssequenceformattinges5descriptoreslintconfigconcatMapxhrArrayBuffer#slicequerystringWeakMappureES2023concurrencyi18npostcss-pluginponyfilldefinePropertyfinduplruconfigurablepostcsslazyhookformarktypemake dirES2015jsonpathencryptionshellless.jsquotekarmaindicatorforEachtyped arrayredux-toolkitbyteLengthwhichexecutablenodeObject.valuesreadES2019ES2021assertsgdprassignfigletsetspringfseventsoperating-systemArrayBufferStreamemittelephoneAsyncIteratorES2018safemulti-packageconcatdatadeterministiceveryrobustfpvaluespasswordgradients css3deepprocessWebSocketreact animationJSONgetpositivestructuredClonewindowshttptoolkitgraphqlstatusname[[Prototype]]RFC-6455fast-deep-copyinternaliteratecurriedless cssrmdirqueueMicrotaskcompareinternal slotapiprototypewrapECMAScript 2018waapiObject.entriesargvcore-jswalkingtranspilepushvaluedefaultfilterArray.prototype.flatautoprefixereventDispatcherWebSocketsaccessibilityflatisConcatSpreadablepersistentnamesstatelessInt8ArrayschemawatcherttyrmansistylingairbnbconnectURLcommandsharedarraybufferpromisesparserlinuxfunctionspnpm9Object.keyssuperstructUint16ArrayclonesetPrototypeOfprotocol-bufferssignalsstyleguideloggerstreams2interruptscolorsparentsinstalldeepcopyweaksetes-shim APIshrinkwrapECMAScript 3utilitiesjsdiffaccessorgesturesecmascriptbcryptdataviewxdgcodesurlsRegExp#flagstextoncecharacterES2017ECMAScript 2016typedUint8ArraymovegetOwnPropertyDescriptortypesloggingPusheditorwritablesettingseventEmitterrfc4122colorTypedArray__proto__mimetypesexit-codelessreuseenumerablesearchless compilerscheme-validationstarterruntimeclassnamescallbindtddtestfetchargumenttoStringTagStreamsfastmodulees2015cryptgetintrinsicCSSStyleDeclarationlinttimethreereadableqsstyled-componentszero$.extendsortbounddirmobilemappreprocessorbyteTypeScriptsetImmediateenderschemefull-widthfullwidthfast-cloneserializereact-testing-librarygetPrototypeOfES7letes2017yupes8jsdomstringifiercacheformcoercibleargparsereducecalltypesafedefineclassnamejQueryvariables in cssio-tsUint8ClampedArrayJSON-SchemalengthHyBifsyamlesbabel-corees6sameValueZeroquerytoobjectArray.prototype.containsprotoelectrontslibregexpfile systemobjectwritetaskECMAScript 2017directoryurlentriescheckECMAScript 2019awaitslotdeep-clonelastnodejsregular expressionsappharmonybindvalidECMAScript 2023negativeES8cjkfast-deep-cloneObject.isdescriptorsapollocolourfindLastIndexfunctionvalidationnested cssjavascriptlaunchform-validationTypeBoxpruneECMAScript 6tapepropertiescompile lesstacitvalidatoroptimistwatchFilewhatwgtermcurlhooksstyledependenciescreatesanitizeObject.assigntypeofURLSearchParamswatchingECMAScript 5queuesyntaxreal-timemomentpopmotionRxwaitcharactersomitwarningajvbundlingcssopenersuperagentjsoneast-asian-widthinstallermetadatatestinghasOwnrm -frcopycss nestingpromiseuninstallnumbermacoscryptocss lessidlekeysharedflattenoptimizerpolyfill_.extendxdg-open.envexecSymbolstylesheetObservablesdataViewprotobufgettersidelinkfastifyintrinsicbrowserpoint-freeclijasminejsxObject.fromEntriescorsdatastructurereact poseinspectjson-schema-validatorstartjslinewrapjapaneseFunction.prototype.name3dfindclassesconsoleminimalcollection.es6avaReactiveExtensionsmatcheseslintstreammochaArray.prototype.flatMapArray.prototype.filtermatchenvfileESnextidbuffersworkspace:*tostringtagvalidateinvariantString.prototype.trimwordwrapBigInt64ArraylanguageES2016css variableReflect.getPrototypeOf0rgbfunctionalconfigthroatreactasciisortedmonorepoRegExp.prototype.flagsES2020domshimdependency managerless mixinsmergefantasy-landestreecensorcoreworkerpipeMapmkdirslistenersconstArray.prototype.flattenclientoptionwebsiteastflagschinesedeep-copyprivatecode pointsArray.prototype.findLastIndexECMAScript 2015requestarraysYAMLhasmatchAllpluginlook-uppropertyprogressdom-testing-libraryimmerObjecthttpsstabledayjsbreakes2016shebangtrimEndreact-hook-formjson-schemajoiMicrosoftframervisualbufferjwttapauthenticationFloat32ArraytoArrayextendArray.prototype.includesunicodecallboundfast-copysigintString.prototype.matchAllviewECMAScript 2022jestargsstringWeakSetoffsetimporthandlersobjpackageauthECMAScript 2021outputmkdirECMAScript 2020typedarrayslesscssgetoptES6react-hooksECMAScript 7sanitizationdebugtesterdroprm -rfiterationspecfindLastfolderdrages2018uuidvestgenericstypaniontrimLeftassertionwalkcolumnspicomatcharraybufferjson-schema-validation6to5ratelimit256extensiondotenvtypeerror@@toStringTagspinnertypescriptfastcopyparentduplexenvironmentfromsymbolssomeefficientRxJSgloba11yfastcloneartflaganimationArray.prototype.findLastexitlookuser-streamsequalityES2022chromiuminferencelimitBigUint64ArrayposelockfilesymlinkregexObservable