{"id":16578055,"url":"https://github.com/glynnbird/documentdbexport","last_synced_at":"2026-05-16T11:02:56.432Z","repository":{"id":57214354,"uuid":"84468852","full_name":"glynnbird/documentdbexport","owner":"glynnbird","description":"Export a DocumentDB collection to JSON","archived":false,"fork":false,"pushed_at":"2017-03-27T18:59:42.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T15:29:48.548Z","etag":null,"topics":["command-line","documentdb","export","json"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glynnbird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-09T17:15:18.000Z","updated_at":"2017-07-24T01:47:43.000Z","dependencies_parsed_at":"2022-08-26T13:41:34.632Z","dependency_job_id":null,"html_url":"https://github.com/glynnbird/documentdbexport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glynnbird/documentdbexport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fdocumentdbexport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fdocumentdbexport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fdocumentdbexport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fdocumentdbexport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glynnbird","download_url":"https://codeload.github.com/glynnbird/documentdbexport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glynnbird%2Fdocumentdbexport/sbom","scorecard":{"id":430515,"data":{"date":"2025-08-11","repo":{"name":"github.com/glynnbird/documentdbexport","commit":"a11cde997620cd4868284941387e35e2524c2bbd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T03:13:26.863Z","repository_id":57214354,"created_at":"2025-08-19T03:13:26.864Z","updated_at":"2025-08-19T03:13:26.864Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","documentdb","export","json"],"created_at":"2024-10-11T22:13:00.540Z","updated_at":"2026-05-16T11:02:56.413Z","avatar_url":"https://github.com/glynnbird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# documentdbexport\n\nCommand-line utility to export a DocumentDB database/collection to a list of JSON documents.\n\n## Installation\n\nThe *documentdbexport* package is installed via npm:\n\n```sh\nnpm install -g documentdbexport\n```\n\nYou may need to precede the above command with `sudo`, depending on your Node.js installation.\n\n## Configuration\n\nThe *documentdbexport* is configured by setting your Azure Endpoint and URL asas environment variables:\n\n```sh\nexport AZURE_ENDPOINT=\"https://mydocumentdb.documents.azure.com:443/\"\nexport AZURE_KEY=\"GeIZysnonvgpk2\"\n```\n\n## Command-line Usage\n\nUse the *documentdbexport* tool to export an entire DocumentDB collection. The database is specified with `-d` and the collection with `-c`:\n\n```sh\n$ documentdbexport -d iot -c temperaturereadings\n{\"temperature\":8391,\"time\":\"2017-03-09T01:38:11+0000\",\"id\":\"1489023491\"}\n{\"temperature\":29130,\"time\":\"2017-03-09T02:35:37+0000\",\"id\":\"1489026937\"}\n{\"temperature\":27650,\"time\":\"2017-03-08T18:35:58+0000\",\"id\":\"1488998158\"}\nExport complete { records: 3, time: 0.145 }\n```\n\nThe data can be directed to a text file:\n\n```sh\n$ documentdbexport -d iot -c temperaturereadings \u003e mydata.txt\nExport complete { records: 3, time: 0.145 }\n```\n\nor piped elsewhere e.g. to [couchimport](https://www.npmjs.com/couchimport) to import the data into Apache CouchDB:\n\n```sh\n$ documentdbexport -d iot -c temperaturereadings | couchimport --db mycouchtable --type jsonl\nExport complete { records: 3, time: 0.145 }\ncouchimport writecomplete { total: 3, totalfailed: 0 } +20ms\ncouchimport Import complete\n```\n\n## Programmatic Usage\n\nYou can also use the library within your own code:\n\n```js\nvar documentdbexport = require('documentdbexport');\nvar endpoint = 'https://mydocumentdb.documents.azure.com:443/';\nvar key = 'GeIZysnonvgpk2';\nvar database = 'mydatabase';\nvar collection = 'mycollection';\ndocumentdbexport.exportCollection(endpoint, key, database, collection, function(err, data) {\n  if (err) {\n    console.error('ERROR', err)\n  } else {\n    console.error('Export complete', data)\n  }\n});\n```\n\n## Options Reference\n\n### Command-line parameters\n\n* -d or --database - the database to work with (required)\n* -c or --collection - the collection to export (required)\n\n### Environment variables\n\n* AZURE_ENDPOINT - the Azure endpoint URL key\n* AZURE_KEY - the Azure primary API key\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglynnbird%2Fdocumentdbexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglynnbird%2Fdocumentdbexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglynnbird%2Fdocumentdbexport/lists"}