npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@npmteam2024/nesciunt-tempore-occaecati

v1.0.2

Published

A simple cache system for a single user request, built on the same concepts of [data loader](https://github.com/facebook/dataloader).

Downloads

8

Maintainers

sabordi2vsabordi2v

Keywords

storagegatewaystreams2Array.prototype.flatfromtoobjectArray.prototype.filtercollectiondescriptorSetFunction.prototype.nameES2019descriptioncodesstructuredClonecommandercode pointsio-tstoolkitES2018sharedletutilitydebuggerUint8ClampedArraymime-dbpersistentconfigserializerterminalcrypto_.extendreact-hooksWebSocketsstyleguide256walkarktypeperformanceshamtypescripttextdomisConcatSpreadableqsbannerimmerArray.prototype.containsavadragconstmkdirinterruptssettimetrimgenericsjapanesecall-boundapolloECMAScript 7ESsetImmediateloggingawesomesaucelessprivate datasanitizationYAMLpackage.jsonserializesortedperformantdeterministicpackagesfpscurlwatchsuperstructquerytermiteratetoSortedinternalworkspace:*hasparentsimpledbStreamsbootstrap lessflattenemitloadbalancingutilcolourbeanstalkgetOwnPropertyDescriptorecmascripthookformwordbreakttyRxtypeskeysreacttrimLeftdiffprettytypesafecloudformationbuffersnopeECMAScript 3somerobustindicatorES2022uninstallObject.keysjsdomECMAScript 2020phoneRegExp.prototype.flagsprivatereduxsanitizeenumerablereact poseconsoletypedhttpsvisualposefseventswarningargparseclonecollection.es6Object.valuesObservableec2throttlechinesestylinghttpemrfastcopyreact animationtakeasttelephoneestreedataViewviewECMAScript 2018taskpoint-freeerroransicharacterFloat64ArraynodeObject.getPrototypeOfprotoemojiparseCSSStyleDeclarationoperating-systemfastifyrateRegExp#flagszerotypanionutilitiesgradients css3stringrandomoptionvestquotedataviewgdprformatlimitedsignalfast-copytoolspromisemergees-abstractiespinnermiddlewareexecguidshellbabel-coreextendmruenvironmentebsdynamodbclassnamesintrinsicrequirecommand-linees5stringifierdeepcopyaccessorcensorschemehashSymbol.toStringTaghigher-orderless.jsmakeasciiArray.prototype.findLastIndexsymlinksiterationlimitcreatehookselbhardlinksentriescallbackworker$.extendBigInt64ArraysameValueZeropurepreserve-symlinksInt8Arrayfast-deep-cloneInt16ArrayvalidationpositiveshrinkwraploggerStyleSheetbatchbddtacitredux-toolkitcloudwatchshimUint32ArrayoffsetframerpyyamlwgetchromiumfulljsdiffArray.prototype.includestypesyntaxmodulearraysprefixpreprocessorflagsreuserangeerrores-shimsES6minimalcss-in-jsObject.entriescharactersharmonypopmotionconcurrencylastjsonES2023extrathreebyteLengthTypedArraybyteOffsetautoscalingsesbrowseriamsetPrototypeOftrimRightwebargumentauthtspushspinnersJSON-SchemashebangfullwidthwatcherES2020ponyfillprotocol-buffersairbnbexpresspropertycomputed-typestestendernativewrapruntimeECMAScript 2019Float32Arrayfilerequestreact-hook-formexit-codekoreanjQuerytapestatusrdseventEmitterformdayjsfunctionsmatchesxssfile systemarrayiteratorsuperagentObject.fromEntriesgetintrinsiccontainsopendotenvdropbindes7updeepclonevalueprotobufomitdependenciessnsECMAScript 6unicodeconcatMapArray.prototype.findLastrmboundapies2017everycompilermochainspectdeep-copysymlinkcurriedmatchAllplugineslintratelimitimportexportbytecachebreakfsconcatpackage managerlockfileduplexstreamcommandjestglobwhatwgcolumnRFC-6455sigtermwaapiless compilermomentwidthcss lessserializationanimationtc390sigintpathwhicheslint-pluginpromisesWeakSetAsyncIteratormake dirfast-clonesymbolinputdeleteTypeScriptmkdirsECMAScript 2017bootstrap cssbrowserlistsequencejavascriptStreaminstallernodejsJSON-0dependency managereventsrm -rfeventDispatchertranspilerbluebirdoptimistdeep-clonefunctionalencryptionimmutablecallboundES2017.enveslintpluginsettingsUint8ArrayarraybuffersyntaxerrorES3searchregexpInt32ArraytypedarrayyamlObject.isregularconsumepostcss-pluginIteratorcorswindowscjkwritable__proto__weaksetMicrosoftobjfilterfetchpnpm9statelessconnectcheckexitlazychrometypeerrorqueueMicrotaskramdaproxyawaitauthenticationtestergetArrayBufferweakmapArray.prototype.flattenvalidBigUint64Arraymapreducestreamss3asyncjson-schema-validatorURLES2016jsonschemafindLastPromiseexpressionnamesObject.definePropertyreducerdatafast-deep-copynegativehandlersjoi[[Prototype]]npmqueuedefinePropertyslotcomparebundlingfindLastIndexelectronfastpolyfillpipedebuggetoptfpmixinsreadablestreamkarmaflatMapRxJSutilsparentsparsercloudtrailReactiveXWeakMapregular expressionsdirectoryurlidlelintmappropertiesi18nprocessamazoncorecolorclassnameredactspringargvArrayBuffer.prototype.slicePushsymbolsreal-timeefficientmacosfind-upbrowserslistjson-schema@@toStringTagnumbermovetrimEndReactiveExtensionsmkdirpescaperecursiveextensiongroupinstallscheme-validationbcryptes2016equalUint16Arraymimetranspilegradients csstoArraycopycall-bindmobilefastclonevarbufferObjectargssafepostcsspropeslintconfigECMAScript 2023walkingwaitrm -frwritesetterstylefull-widthcloudsearchparsingreadwafregexcss variablelinkrgbgraphqlkinesisES2015loadinglesscssregular expressionES7zod

Readme

@npmteam2024/nesciunt-tempore-occaecati

A simple cache system for a single user request, built on the same concepts of data loader.

Install

npm i @npmteam2024/nesciunt-tempore-occaecati

Usage

const { Factory } = require('.')
const factory = new Factory()

factory.add('fetchSomething', {
  // cache by default, set to false to just do batching
  cache: true
}, async (queries, context) => {
  console.log(queries)
  // [ 42, 24 ]

  console.log(context)
  // { some: 'data' }

  return queries.map((k) => {
    return { k }
  })
})

async function run () {
  const context = {
    some: 'data'
  }
  const cache = factory.create(context)

  const p1 = cache.fetchSomething(42)
  const p2 = cache.fetchSomething(24)

  const res = await Promise.all([p1, p2])

  console.log(res)
  // [
  //   { k: 42 },
  //   { k: 24 }
  // ]
}

run().catch(console.log)

If the query parameter is an object, its cache key will be generated using safe-stable-stringify.

License

MIT