1.0.0 • Published 1 year ago

@rabiepenpm2/a-ut-deserunt v1.0.0

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

Async Logo

Github Actions CI status NPM version Coverage Status Join the chat at https://gitter.im/caolan/@rabiepenpm2/a-ut-deserunt jsDelivr Hits

Async is a utility module which provides straight-forward, powerful functions for working with @rabiepenpm2/a-ut-deserunthronous JavaScript. Although originally designed for use with Node.js and installable via npm i @rabiepenpm2/a-ut-deserunt, it can also be used directly in the browser. An ESM/MJS version is included in the main @rabiepenpm2/a-ut-deserunt package that should automatically be used with compatible bundlers such as Webpack and Rollup.

A pure ESM version of Async is available as @rabiepenpm2/a-ut-deserunt-es.

For Documentation, visit https://caolan.github.io/@rabiepenpm2/a-ut-deserunt/

For Async v1.5.x documentation, go HERE

// for use with Node-style callbacks...
var @rabiepenpm2/a-ut-deserunt = require("@rabiepenpm2/a-ut-deserunt");

var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
var configs = {};

@rabiepenpm2/a-ut-deserunt.forEachOf(obj, (value, key, callback) => {
    fs.readFile(__dirname + value, "utf8", (err, data) => {
        if (err) return callback(err);
        try {
            configs[key] = JSON.parse(data);
        } catch (e) {
            return callback(e);
        }
        callback();
    });
}, err => {
    if (err) console.error(err.message);
    // configs is now a map of JSON data
    doSomethingWith(configs);
});
var @rabiepenpm2/a-ut-deserunt = require("@rabiepenpm2/a-ut-deserunt");

// ...or ES2017 @rabiepenpm2/a-ut-deserunt functions
@rabiepenpm2/a-ut-deserunt.mapLimit(urls, 5, @rabiepenpm2/a-ut-deserunt function(url) {
    const response = await fetch(url)
    return response.body
}, (err, results) => {
    if (err) throw err
    // results is now an array of the response bodies
    console.log(results)
})
sharedcollection.es6protobufsortedes2018higher-ordercorsES2023classnameses-shim APIObject.entrieswhichiameast-asian-widthqsqueryreplayshellairbnbiterateinvariantwatchingTypeBoxspecFloat64ArrayserializationstoragegatewayRxtc39Object.keysstringinstalltypeerroruninstalls3awaitECMAScript 2022signalmatchAllsortrequestspinnersquoteasyncRegExp.prototype.flagsgenericsschemagetintrinsicfullwordbreakauthenticationECMAScript 2020dependency managerreadablestreamless mixinstapeajaxassignbreakES2022schemecloudfronttrimEndtoSortedjoiproxyUint16Arrayidlejsjsdomtraversefast-copyhookspyyamlebsObservablermdirsearchfigletString.prototype.matchAllObservablespluginArray.prototype.findLastzodfoldervaluegradients css3argumentutil.inspectprotoshimtelephoneajvexitfindupdebugTypeScriptnopeconcatutilawesomesaucecore-jscoresigintES2020regexpredactwrapcreateserializeflatMap-0less compilerglacierweaksetObjecttostringtagansiStyleSheetappkeysECMAScript 7syntaxerrordropa11ygetteriterationclassnamesqscall-bindES5SetpackagesHyBiparsebyteLengthi18nroute53typescriptreact-hook-formfastcopyutilitiesArray.prototype.containscodesstyled-componentsstructuredClonemimetypesdefinevalidreducertoobjectdescriptorcompilerstablelockfilestatelesssymlinkslinewrapownSymbol.toStringTagroutercloudsearchspeedlastcss nestingkoreanarktypepropertiesparsingcharacterproptermprefixexecES3extendmkdirpcomputed-typesrecursiveMicrosoftseseverywindowsInt8Arraytyped arrayes2016variableses-shimsio-tssetWebSocketsyntaxgetOwnPropertyDescriptorflatbcryptAsyncIteratorinternal slotwafobjectnegative zerolrufilterfluxautoprefixernegativemobileInt32ArraylibphonenumberprivatecheckbrowserslisthasOwnPropertyES2021trimRightregexerrorcommanderdeleteprettyiteratorargsomitJSONl10nargvxhraccessorfetch_.extendprotocol-buffersterminalbootstrap lesscolumntextlimitweakmapimmutablepredictablees7upcallCSSrestworkflowInt16ArrayES2018idfunctionpackage managerTypedArrayrandomlinttakeconfigenderavaconsumeinterruptsObject.assignresolvegetoptrangeerrorstylingdependenciesforEachelectronWebSocketselasticachepropertymetadataprototypewarningtimerm -rfsuperstructreadablestyleguidettycryptopasswordflagtypescjknodejsfsquerystringPromisedirunicodeendpointcomparebundlingcommand-lineescapecss-in-jsconnecttoArraychromiumIteratorfromarrayremoveexit-codewebesisConcatSpreadabletappicomatchArray.prototype.flatMapcallboundinferencees2017circulardeepjavascriptFloat32ArrayprogressrmpipewritableECMAScript 2018jsonurlgroupByObject.definePropertyECMAScript 2016sliceoffsetrdsdomwatcherrgbcurlinputbuffersRFC-6455widthminimalsomestringifyvariables in csswordwrapmacostypedarrayeslintconfigsnseventsmonorepofile systemoncebusywatchFilehelpersdiffpackage.jsonassertionlesscssfindLastIndexindicatorECMAScript 3ec2polyfillecmascriptmodules@@toStringTagperformancetypanionredux-toolkitfpsdeterministicES2016preprocessorincludesislogastrapidemojitoStringTagArray.prototype.filterstreamelbwriteArrayfixed-widthhas-ownsettingsbindUint32Arrayroutemime-dbpromisestreamswatchsignalsES2019clonetypedtypeofopenBigInt64ArrayObject.fromEntriesinasciidescriptionclassesenumerablekarmaspinneres8flattenfastifyArray.prototype.findLastIndexmergeviewbundlerpruneshebangformataccessibilityES7environmentless cssgetassertsmake dirpostcsshardlinkscensorserializerlanguageArrayBufferruntimevpclazycoercibleless.jsform-validationUint8ArraymixinseventEmitterdataviewhandlerserror-handlingcss variableietddsafedatefast-deep-cloneconcatMapeslintdatastructuredeep-clonevalidateencryptionchineseoutputstatestyleses5apitrimStarttoolkitautoscalingJSON-Schemaoptiontsrfc4122getPrototypeOfhttpefficientjQuerywaitsuperagentshamcloudformationirqsetPrototypeOfFunction.prototype.nameWeakSetargparsepostcss-pluginintrinsiclinuxdeep-copycloudtrail0String.prototype.trimcompile lessreusearraysextraequalityMapcopyeslintpluginworkerdataArrayBuffer.prototype.sliceES6globloadbalancingfull-widthsymlinkfast-deep-copymakeoptimisthasfindstylesheettypedarraystestcachecontainsnamesymbolmodulestyleconsoleStreamcallbackzeromkdirlogger[[Prototype]]formrequireRegExp#flagsdescriptorsStreamsqueuescheme-validationgdprvisualstatus$.extendponyfillyupnpmrobustreduxcallbindtouchswftypeimportcode pointsartdataViewbannerprivate dataes2015ECMAScript 2015tslibcall-boundimportexportpackagedayjsgrouppnpm9bddhashbeanstalkcommandnativemulti-packagethrottlecss lesssetImmediatecloudwatchduplextestingparentssinatrahasOwntrimLeftdebuggerstarterlistenerskeyes-abstractthroatReactiveXCSSStyleDeclarationinstalleruuidvestlogginglook-upsetterreact-hooksdom-testing-librarytesterdirectorystdlibbyteOffsetfilestreams2real-timejasmineenvroutinggradients cssECMAScript 2023japaneseECMAScript 2021functionalphonemapreduceObject.valuescollection.envESnested cssextensionbuffercolumnsES8walkes6utilityhttpsinternaltaskwgetES2017agentmapfindLastmkdirscryptdotenvReactiveExtensionsvaluesboundguidpreserve-symlinkshookformsameValueZeromatchesconcurrencyjestreduceeslint-pluginloadingECMAScript 2017numberES2015queueMicrotaskArray.prototype.flattenparsersideworkspace:*WeakMapcolourperformanteventDispatcher__proto__fast-clonepositiveamazonpromisesbrowsernodejsdiffReflect.getPrototypeOfchannelSymbolObject.isreact-testing-librarypathjwtarraybuffercharactersawsformattingbyteauthratelimitsharedarraybufferregular expressionspushbrowserlistwalkingbootstrap cssYAMLdeepcloneliveassertvalidationemitmiddlewaredynamodblessArray.prototype.flatbluebirdreadclass-validatorcolorURLRxJSfullwidthUnderscoreshrinkwrapESnext
1.0.0

1 year ago