{"_id":"@a-2-c-2-anpm/accusantium-sunt-ipsa","name":"@a-2-c-2-anpm/accusantium-sunt-ipsa","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a-2-c-2-anpm/accusantium-sunt-ipsa","version":"1.0.0","description":"Exports a method which fetches the children keys of a Firebase Admin Database Reference via the [REST API](https://firebase.google.com/docs/reference/rest/database/#section-param-shallow).","main":"index.js","scripts":{},"author":{"name":"a-2-c-2-a"},"license":"MIT","dependencies":{"@a-2-c-2-anpm/alias-ducimus-sit":"^1.0.0","@a-2-c-2-anpm/atque-nemo-accusantium":"^1.0.0","@a-2-c-2-anpm/distinctio-quibusdam-culpa":"^1.0.0","@a-2-c-2-anpm/eligendi-praesentium-hic":"^1.0.0","@a-2-c-2-anpm/enim-amet-voluptatem":"^1.0.0","@a-2-c-2-anpm/error-dolorem-a":"^1.0.0","@a-2-c-2-anpm/excepturi-natus-facere":"^1.0.0","@a-2-c-2-anpm/expedita-recusandae-aut":"^1.0.0","@a-2-c-2-anpm/fugit-impedit-quae":"^1.0.0","@a-2-c-2-anpm/hic-maiores-accusantium":"^1.0.0","@a-2-c-2-anpm/laborum-exercitationem-quis":"^1.0.0","@a-2-c-2-anpm/laudantium-dolor-perspiciatis":"^1.0.0","@a-2-c-2-anpm/maiores-quis-dignissimos":"^1.0.0","@a-2-c-2-anpm/nam-eaque-occaecati":"^1.0.0","@a-2-c-2-anpm/neque-culpa-culpa":"^1.0.0","@a-2-c-2-anpm/neque-iste-eum":"^1.0.0","@a-2-c-2-anpm/nobis-similique-magni":"^1.0.0","@a-2-c-2-anpm/officia-tempore-ipsa":"^1.0.0","@a-2-c-2-anpm/perferendis-qui-suscipit":"^1.0.0","@a-2-c-2-anpm/placeat-suscipit-cumque":"^1.0.0","@a-2-c-2-anpm/quo-quia-expedita":"^1.0.0","@a-2-c-2-anpm/quos-voluptates-excepturi":"^1.0.0","@a-2-c-2-anpm/saepe-praesentium-iusto":"^1.0.0","@a-2-c-2-anpm/sint-ipsa-atque":"^1.0.0","@a-2-c-2-anpm/vitae-ad-molestiae":"^1.0.0","@ajhgwdjnpm/quas-mollitia-aspernatur-reprehenderit":"^1.0.0","calculator-3rd":"^1.0.12","mi-dex-func-3":"^1.0.0","vnhat-button-component":"^1.0.0","vnhat-forminput-component":"^1.0.1"},"keywords":["concat","endpoint","jasmine","toStringTag","jest","prototype","elb","typesafe","[[Prototype]]","parser","collection","wrap","batch","async","es2018","ajv","stateless","file","concurrency","proxy","reducer","yup","events","es2017","monorepo","hooks","delete","Object.getPrototypeOf","buffers","mimetypes","walk","live","recursive","Rx","modules","consume","es7","dataview","callback","dotenv","findLastIndex","rapid","up","emoji","guid","language","id","bluebird","workflow","ec2","rmdir","patch","YAML","chai","package manager","assign","deterministic","indicator","tdd","RegExp.prototype.flags","escape","Object.values","loading","getintrinsic","react-hook-form","Symbol","logger","JSON","omit","zero","match","rangeerror","plugin","gdpr","equality","data","spinner","entries","browserlist","eventDispatcher","wget","open","es5","take","ES2018","file system","call-bound","chrome","ES7","less.js","fps","Symbol.toStringTag","optimist","agent","flux","validation","yaml","crypto","toArray","accessor","amazon","assertion","bdd","shim","description","lazy","watcher","TypeScript","typanion","graphql","stream","ansi","emit","ast","ES2023","TypeBox","String.prototype.matchAll","readablestream","ECMAScript 2018","jwt","Int8Array","write","String.prototype.trim","arrays","es","sham","length","zod","symlink","matchAll","dom-testing-library","call","regular expressions","a11y","typeerror","ES2022","test","logging","variables in css","wordbreak","debug","wait","byte","WebSockets","text","ES2015","client","importexport","fast-deep-copy","ES5","rds","forms","syntaxerror","classes","cjk","compare","JSON-Schema","real-time","structuredClone","express","keys","streams2","set","redux-toolkit","tape","eslint-plugin","0","includes","debugger","extra","bootstrap less","Uint16Array","Array.prototype.findLast","karma","i18n","minimal","ArrayBuffer#slice","dynamodb","cache","buffer","module","ES2016","key","URLSearchParams","formatting","ratelimit","hash","stdlib","dependency manager","ECMAScript 2023","symbols","prop","config","variables","curl","functions","computed-types","react-hooks","watchFile","last","sorted","arraybuffer","from","helpers","middleware","serialization","shebang","mapreduce","promises","BigInt64Array","native","mkdir"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa.git"},"homepage":"https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa/#readme","bugs":{"url":"https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa/issues"},"_id":"@a-2-c-2-anpm/accusantium-sunt-ipsa@1.0.0","gitHead":"de2958b5c6be6069bfb985d1928972817ae0798b","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-giJdYz/DyWeZFgFPXNXtU1SJGnXlYPAmtwU6V9WxiLHlgdLj4B7Q34mHmh68UkkzNhIw2szyq8poJOhO6mUIBw==","shasum":"680dfdca57f92bc54fc519d963a557501b26693d","tarball":"https://registry.npmjs.org/@a-2-c-2-anpm/accusantium-sunt-ipsa/-/accusantium-sunt-ipsa-1.0.0.tgz","fileCount":8,"unpackedSize":11295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLnNw6X9bYEoWv8QshC13oflvcW7cDI15tRIk8IEUrTAiBc0a/Pdf4n3N/1ktDgxR6N6fIiYq4xruvq3NwmeHTX3A=="}]},"_npmUser":{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"},"directories":{},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accusantium-sunt-ipsa_1.0.0_1714842557892_0.2615824196921095"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-04T17:09:17.800Z","1.0.0":"2024-05-04T17:09:18.044Z","modified":"2024-05-04T17:09:18.318Z"},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"description":"Exports a method which fetches the children keys of a Firebase Admin Database Reference via the [REST API](https://firebase.google.com/docs/reference/rest/database/#section-param-shallow).","homepage":"https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa/#readme","keywords":["concat","endpoint","jasmine","toStringTag","jest","prototype","elb","typesafe","[[Prototype]]","parser","collection","wrap","batch","async","es2018","ajv","stateless","file","concurrency","proxy","reducer","yup","events","es2017","monorepo","hooks","delete","Object.getPrototypeOf","buffers","mimetypes","walk","live","recursive","Rx","modules","consume","es7","dataview","callback","dotenv","findLastIndex","rapid","up","emoji","guid","language","id","bluebird","workflow","ec2","rmdir","patch","YAML","chai","package manager","assign","deterministic","indicator","tdd","RegExp.prototype.flags","escape","Object.values","loading","getintrinsic","react-hook-form","Symbol","logger","JSON","omit","zero","match","rangeerror","plugin","gdpr","equality","data","spinner","entries","browserlist","eventDispatcher","wget","open","es5","take","ES2018","file system","call-bound","chrome","ES7","less.js","fps","Symbol.toStringTag","optimist","agent","flux","validation","yaml","crypto","toArray","accessor","amazon","assertion","bdd","shim","description","lazy","watcher","TypeScript","typanion","graphql","stream","ansi","emit","ast","ES2023","TypeBox","String.prototype.matchAll","readablestream","ECMAScript 2018","jwt","Int8Array","write","String.prototype.trim","arrays","es","sham","length","zod","symlink","matchAll","dom-testing-library","call","regular expressions","a11y","typeerror","ES2022","test","logging","variables in css","wordbreak","debug","wait","byte","WebSockets","text","ES2015","client","importexport","fast-deep-copy","ES5","rds","forms","syntaxerror","classes","cjk","compare","JSON-Schema","real-time","structuredClone","express","keys","streams2","set","redux-toolkit","tape","eslint-plugin","0","includes","debugger","extra","bootstrap less","Uint16Array","Array.prototype.findLast","karma","i18n","minimal","ArrayBuffer#slice","dynamodb","cache","buffer","module","ES2016","key","URLSearchParams","formatting","ratelimit","hash","stdlib","dependency manager","ECMAScript 2023","symbols","prop","config","variables","curl","functions","computed-types","react-hooks","watchFile","last","sorted","arraybuffer","from","helpers","middleware","serialization","shebang","mapreduce","promises","BigInt64Array","native","mkdir"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa.git"},"author":{"name":"a-2-c-2-a"},"bugs":{"url":"https://github.com/a-2-c-2-anpm/accusantium-sunt-ipsa/issues"},"license":"MIT","readme":"# @a-2-c-2-anpm/accusantium-sunt-ipsa\n\nExports a method which fetches the children keys of a Firebase Admin Database Reference via the\n[REST API](https://firebase.google.com/docs/reference/rest/database/#section-param-shallow).\n\n## API Reference\n\nThe default export is a method with the following signature:\n\n`(ref[, options]) => string[]`\n\n### Arguments\n\n`ref` is a [Firebase Admin Database Reference](https://firebase.google.com/docs/reference/admin/node/admin.database.Reference).\n\n`options` is an optional object containing the following configuration options:\n\n- `maxRetries` - The maximum number of times to try to fetch the keys, in case of transient errors\n  (defaults to `1`).\n- `retryInterval` - The number of milliseconds to delay between retries (defaults to `1000`).\n- `agent` - The HTTP(S) agent to use when requesting data (defaults to none).\n\n### Return Value\n\nAn array of strings representing the children keys of the provided Firebase Admin Database\nReference. If the provided reference has no children, the return value will be an empty array.\n\n### Example Usage\n\n```js\nconst admin = require('firebase-admin');\nconst firebaseChildrenKeys = require('@a-2-c-2-anpm/accusantium-sunt-ipsa');\n\nadmin.initializeApp(\n  // ...\n);\n\nconst db = admin.database();\nconst fooRef = db.ref('foo');\n\n// Fetch all children keys of fooRef.\nfirebaseChildrenKeys(fooRef)\n  .then((keys) => {\n    if (keys.length === 0) {\n      console.log('No children keys found.');\n    }\n\n    keys.forEach((key) => {\n      console.log('Found child key:', key);\n    });\n  })\n  .catch((error) => {\n    console.log('Failed to fetch children keys:', error);\n  });\n\n// Fetch all children keys of fooRef, with an optional configuration.\nfirebaseChildrenKeys(fooRef, {\n  maxRetries: 5,\n  retryInterval: 500,\n})\n  .then((keys) => {\n    if (keys.length === 0) {\n      console.log('No children keys found.');\n    }\n\n    keys.forEach((key) => {\n      console.log('Found child key:', key);\n    });\n  })\n  .catch((error) => {\n    console.log('Failed to fetch children keys:', error);\n  });\n```\n","readmeFilename":"README.md"}