Licence
MIT
Version
1.0.0
Deps
11
Size
21 kB
Vulns
0
Weekly
0
@osjwnpm/omnis-reprehenderit-provident 

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 @osjwnpm/omnis-reprehenderit-provident
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 '@osjwnpm/omnis-reprehenderit-provident'
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
viewcoretermwalkingbundlingansinodebannerquerystringWebSocketscss lessStreamsstylesheetStyleSheetfullcontainsrobustbcryptextrathrottleObject.fromEntriesBigInt64ArraycallbacksiginttypeerrorassertpassworddefaultemitprogresstimegetOwnPropertyDescriptorInt16ArraywatcherfolderObjectvalidationprefixarktypelimitObservableiterationiteratorrmreadablestreamgroupBydataviewpositiveObject.definePropertyrangeerrorsigtermreact-hook-formapollomomentArray.prototype.containsutilitiesarraybufferkeystylesReactiveXperformantFunction.prototype.nameweakmapfastifyoperating-systemtestinges7koreanoncemiddlewarepopmotioncharacterECMAScript 2020internal slotless mixinsuninstallimmernpmjsdomPushfull-widthtypanionenderconcurrencyjsxkeysvisualsignalscommand-linejsonstreamsdatetspluginfsECMAScript 2022windowsES2015zerochaienumerableIteratorminimalstructuredClonedependency managerfindupconstArrayBuffer#slicecollectionargsinvariantES2018ES2022xdgstatuslinewrapratelanguage_.extendECMAScript 2018configairbnbconcatoptimizernopefantasy-landrecursivesortsome.envSetyupindicatorsuperagentbufferdeepcopyPromiseopensschematrimreadscheme-validationjssequencecodeschannelfixed-widthRFC-6455trimEndwalkgradients cssmulti-packagesearchWeakMapeslintMicrosoftextendreusephonees-shimsparserlrues5find-upstreams2-0electron__proto__wgethardlinksfast-clonefunctionsletECMAScript 2021formsvalidstreampnpm9CSSspawngetterjsonpathserializemkdirpcmdsetterconsolemakeaccessorTypeBoxsharedarraybufferbootstrap lessecmascriptramdadataexeinspectUnderscoreispreprocessorECMAScript 2016negative zeromatchesequallaststylingmetadatawritablepolyfillgradients css3toobjectargves6bootstrap cssanimationcsssymlinkstypedarraymruReactiveExtensionstoArrayTypeScriptObject.getPrototypeOfsymbolsjwtflatcircularauthenticationautoprefixereast-asian-widthregexfast-copycopyeventEmittera11yfunctionisConcatSpreadableCSSStyleDeclarationES7assertsAsyncIteratorpruneargumentsargument3dgetPrototypeOfpropertiesinputfindLastIndexES6vestlazyloadinghandlersjsdifftapassignenvironmentforEachfastcloneECMAScript 2017regular expressionsxhrtddoptimistcall-bindURLSearchParamsvaluesYAMLmatchmobileequalityvalueArray.prototype.findLastlaunchstatelesstypeofawesomesaucetoolkitbabelpromisesexecutabletextnested cssextensionsortedvartoolshasfullwidthdraginternales2018moduleoffsetttyopenoptioneslint-plugincolourstylereadablehasOwntyped6to5xdg-openArray.prototype.filteres-abstractencryptionlogginggetintrinsicnativehookformprototypeESdebuggerbatchdeep-clonejestspringefficientES2017react animationtypesafefigletsliceES2016filegrouptaskomithttpframeworktypetostringtagavarapidmimestartexitchildlintpushpatchcryptvariablesdroptypedarraysdiffcallboundtakewatchstringifierobjectRxJSreducefast-deep-copyreduxworkerhashi18nassertionrm -frcurlopenerES8gesturesFloat32ArrayschemenamejQueryeventsbrowserlistsuperstructtranspileshellvalidatorrequireflagsstyleguideasciibddMapcollection.es6web256dayjsmkdirartObject.valuesieprivateresolveArrayBufferstablexssrfc4122writesharedtelephonecacheTypedArraydefinePropertyshrinkwrapstringquote@@toStringTagcode pointsvariables in css[[Prototype]]preserve-symlinkspackagebabel-corebyteLengthapppersistentcurriedboundenvbyteOffsetnegativedeepwhichchromeserializationastjoicalldeep-copyRxFloat64ArrayHyBicreateprivate dataregexpjsonschematrimStartchinesesymbolemojirequestless.jsruntimefile systemreactcheckframerlookES3package.jsonvalidate0spinnersutilityeditorguidtslibsyntaxerrorSymbol.toStringTag$.extendyamlwatchFilejavascriptsignaldeleteeveryparentcomparequerysetImmediatees2016tc39slotlogwebsitetyped arraypicomatchArraymergeiteratecolorswidthclihttpsxtermweaksetUint16Arrayeslintpluginless compilerarraysprotoclientmime-dbObservablestranspilerconcatMapcommandes2017specshimwhatwgsyntaxcoerciblebreakES5react-hooksURLzodwatchinginstallObject.issymlinktoSortedtacitconnectInt8ArrayflattenECMAScript 2023settingsfastqueueMicrotaskdescriptorthreeterminalmonorepoparentsfindpurefindLastremoveapireact-testing-librarylessUint32ArrayrandomsanitizeclonecolorqsgetoptparsemapaccessibilitytrimRightmacosdom-testing-librarysetPrototypeOfchromiumworkspace:*Object.assignajaxuuidshamWeakSetprocessintrinsicformattingexit-codecallbindio-tsclassnameES2021expresswaapiArray.prototype.flatdescriptionsideharmonylibphonenumberpostcss-pluginmoduleslinuxduplexgetArray.prototype.flatMapArray.prototype.flattenString.prototype.matchAllcomputed-typesbrowserES2020ECMAScript 3classesECMAScript 5lengthbuffersbluebirdgdprspeedimmutableobjsanitizationcolumnseshigher-orderJSONObject.keysredux-toolkitArray.prototype.includesfromcolumnlimitedflagECMAScript 2019core-jsJSON-Schemapoint-freeWebSocketcryptomkdirsbundlerredacttouchthroates8escapeconfigurablejson-schema-validatornumberECMAScript 6mixinsRegExp#flagstestArrayBuffer.prototype.sliceESnexttapehooksunicodetesterstringifyincludescss-in-jsurlfseventsinterruptsregularprettypropertyfpdeterministicqueuefast-deep-clonenamesprotobufUint8Arraypostcssdeepcloneexecform-validationcss variableObject.entriesjasmineclassnamesjson-schemaspinnerfunctionalirqcensorfastcopyerrorwordbreakcompile lessinstallergraphqldefineeventDispatcherhelpersexpressionoutputRegExp.prototype.flagsdotenvpropsameValueZerocall-boundpromisemimetypesserializerES2019genericses2015packagesdirectoryposelesscssidleimportargparsestyled-componentsawaitBigUint64Arraynodejsupmake dirsetfetchlook-upsafemochaajvReflect.getPrototypeOfurlswrapInt32Arraywaitmovekarmaloggerlockfileglobperformanceratelimitdescriptorsutil.inspecttypesinferencecorseslintconfigregular expressionpipecharactersArray.prototype.findLastIndexshebangarrayless cssSymbolwarningdependenciesdatastructurecommanderflatMapidbusydebugtoStringTagStreamerror-handlingformcompilerdomwordwrapdataViewutilrmdirasyncrm -rfreducerdirprotocol-bufferspackage managerl10nUint8ClampedArraymatchAllcjkauthreact poseECMAScript 7class-validatortypescriptestreees-shim APIuser-streamsECMAScript 2015ponyfillcss nestingutilsreal-timefilterlinkbindpathES2023japanesestarter