2.4.54 • Published 12 months ago

@erboladaiorg/incidunt-iure-libero v2.4.54

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@erboladaiorg/incidunt-iure-libero

Exports a method which fetches the children keys of a Firebase Admin Database Reference via the REST API.

API Reference

The default export is a method with the following signature:

(ref[, options]) => string[]

Arguments

ref is a Firebase Admin Database Reference.

options is an optional object containing the following configuration options:

  • maxRetries - The maximum number of times to try to fetch the keys, in case of transient errors (defaults to 1).
  • retryInterval - The number of milliseconds to delay between retries (defaults to 1000).
  • agent - The HTTP(S) agent to use when requesting data (defaults to none).

Return Value

An array of strings representing the children keys of the provided Firebase Admin Database Reference. If the provided reference has no children, the return value will be an empty array.

Example Usage

const admin = require('firebase-admin');
const firebaseChildrenKeys = require('@erboladaiorg/incidunt-iure-libero');

admin.initializeApp(
  // ...
);

const db = admin.database();
const fooRef = db.ref('foo');

// Fetch all children keys of fooRef.
firebaseChildrenKeys(fooRef)
  .then((keys) => {
    if (keys.length === 0) {
      console.log('No children keys found.');
    }

    keys.forEach((key) => {
      console.log('Found child key:', key);
    });
  })
  .catch((error) => {
    console.log('Failed to fetch children keys:', error);
  });

// Fetch all children keys of fooRef, with an optional configuration.
firebaseChildrenKeys(fooRef, {
  maxRetries: 5,
  retryInterval: 500,
})
  .then((keys) => {
    if (keys.length === 0) {
      console.log('No children keys found.');
    }

    keys.forEach((key) => {
      console.log('Found child key:', key);
    });
  })
  .catch((error) => {
    console.log('Failed to fetch children keys:', error);
  });
inuuidjsxgetterinstallSetsuperagentsesscheme-validationESnextfullinvariantArray.prototype.flatMapenumerablehttpsSymbol.toStringTagshimes-abstractstructuredCloneiterator.envnodedeepclonespinnerhasOwnPropertyrequestbyteOffsetdotenvsubprocessarraysexpressnodejsponyfillrdsconsumeassignstoragegatewaydefineruntimepropertytypanionbddtexttddpackage.jsonsigintsignalsArray.prototype.flatvalidesregular expressioncensorextraString.prototype.trimclassnamesweakmapJSON-SchemairqdatastructureimmutabletrimStartdiffArrayBuffer#sliceshamObject.fromEntriestypedarraysharedarraybuffershebanges5ES2022termasteriskssignedforEacheventsintrinsicbrowserslista11ydeepcolumnsprotocollection.es6childStyleSheetcurlvariables in cssredux-toolkitcontainsreal-timechromiumfpsbabel-coredynamodbPromiseStreamserializetakezodassertswindowpackage managervpcebsliveaccessibilityuploadbeanstalkmatchAllarraytoStringTagweaksetnpmeslintconfigformsauthpositivepinoparserenvironmentspolyfillbinariesrulesjavascriptencryptioncolorfile systempathwalkBigInt64Arrayconsolevalueincludeses8l10niterationts_.extendloggingrecursiveArray.prototype.filtermatchestranspilersymlinkfast-deep-clonecloudsearchloadbalancingHyBiremovesimpledb.gitignoreaccessorconfig__proto__bootstrap cssoutputless.jsflatMapfantasy-landwindowsstreamoptionRxpreserve-symlinksstatusURLObject.entriesFloat32Arrayautoscalingschemefast-copychinesestarterenderES5exitnegativefastjsdomisConcatSpreadablefilterqssetworkerquoteRFC-6455deterministicrangeerrorcommand-linecloudwatchregularCSSStyleDeclarationless mixinsECMAScript 2017replaytraverseObjectTypeScriptYAMLECMAScript 2021stablefast-cloneMapignoresettermonorepopatchwaittypeoffnmatchcallbacksetImmediateconfigurablecachewafenvironmentinternal slotRegExp.prototype.flagsspringoffsetcryptoCSSlockfileECMAScript 6graphqloperating-systemmatchharmonyhookforminternaloptimistMicrosoftgdpres6iterate6to5global this valueproptelephonepersistentdataviewECMAScript 2019ECMAScript 2020emrmake dirjwtkoreanloggerES2021parseinterruptsstatelessmoveobjregexpoint-freewaapixhrBigUint64ArraysymbolWebSocketspackageshasOwnendpointdateInt32ArrayrandompasswordapiWeakSetenvchromeECMAScriptreduxyamllogstatereducetc39minimalvisualdeep-copytoobjectECMAScript 2018ArrayBuffer.prototype.sliceeslint-plugingetintrinsicreuseeslintsequenceidentifiersletstyleflatfigletfindsqsmetadatarobustrequirefindLastsymlinksclonetypedarrayscompile lessprogressflagbusyECMAScript 2023airbnbgitignoreObject.getPrototypeOfcircularfixed-widthfastclonestylesheetpostcss-pluginreadcommandhashfunctionsECMAScript 3Object.definePropertyconstlazyvalidatefastifyprocessprunetypecss-in-jscss nestingcore-jsnopeutilitiesTypeBoxnumberdeep-clonetoolsjoispecrapidcloudtrailargstoReversedjson-schema-validationelasticachesortedECMAScript 2022pureconcatMapamazonfullwidthexpressionsetPrototypeOfdirpose
2.4.54

12 months ago

2.3.54

12 months ago

2.3.53

12 months ago

2.3.52

12 months ago

2.3.51

12 months ago

2.3.50

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

2.3.47

12 months ago

2.3.46

12 months ago

2.3.45

12 months ago

2.3.44

12 months ago

2.3.43

12 months ago

2.3.42

12 months ago

2.3.41

12 months ago

2.3.40

12 months ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago