{"id":15761644,"url":"https://github.com/alrico88/data-exporter","last_synced_at":"2026-04-27T08:31:46.542Z","repository":{"id":98770546,"uuid":"164689407","full_name":"alrico88/data-exporter","owner":"alrico88","description":"Allows to save JSON formatted content to disk, as JSON or CSV in browsers","archived":false,"fork":false,"pushed_at":"2020-08-07T09:05:39.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T16:58:52.119Z","etag":null,"topics":["browser","csv","download","file","json"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/data-exporter","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/alrico88.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-08T16:27:16.000Z","updated_at":"2023-09-08T17:49:03.000Z","dependencies_parsed_at":"2023-03-19T01:03:59.252Z","dependency_job_id":null,"html_url":"https://github.com/alrico88/data-exporter","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"b5bba3c142c98cb7d125f9e08c0c6050194340a8"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/alrico88/data-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fdata-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fdata-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fdata-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fdata-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alrico88","download_url":"https://codeload.github.com/alrico88/data-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alrico88%2Fdata-exporter/sbom","scorecard":{"id":186815,"data":{"date":"2025-08-11","repo":{"name":"github.com/alrico88/data-exporter","commit":"b5bba3c142c98cb7d125f9e08c0c6050194340a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T19:56:34.362Z","repository_id":98770546,"created_at":"2025-08-16T19:56:34.363Z","updated_at":"2025-08-16T19:56:34.363Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["browser","csv","download","file","json"],"created_at":"2024-10-04T11:03:20.386Z","updated_at":"2026-04-27T08:31:46.505Z","avatar_url":"https://github.com/alrico88.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Classes\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#Exporter\"\u003eExporter\u003c/a\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"Exporter\"\u003e\u003c/a\u003e\n\n## Exporter\n\n**Kind**: global class\n\n- [Exporter](#Exporter)\n  - [new Exporter()](#new_Exporter_new)\n  - [.module.exports](#Exporter.module.exports)\n    - [new module.exports(data, filename, extension, mimeType)](#new_Exporter.module.exports_new)\n  - [.convertJSONToCsv(json)](#Exporter.convertJSONToCsv) ⇒ \u003ccode\u003estring\u003c/code\u003e\n  - [.stringifyJSON(json, [pretty])](#Exporter.stringifyJSON) ⇒ \u003ccode\u003estring\u003c/code\u003e\n  - [.save()](#Exporter.save)\n  - [.saveJSON()](#Exporter.saveJSON)\n  - [.saveCSV()](#Exporter.saveCSV)\n\n\u003ca name=\"new_Exporter_new\"\u003e\u003c/a\u003e\n\n### new Exporter()\n\nExporter class\n\n\u003ca name=\"Exporter.module.exports\"\u003e\u003c/a\u003e\n\n### Exporter.module.exports\n\n**Kind**: static class of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n\u003ca name=\"new_Exporter.module.exports_new\"\u003e\u003c/a\u003e\n\n#### new module.exports(data, filename, extension, mimeType)\n\nCreates an instance of Exporter.\n\n| Param     | Type                | Description                                                      |\n| --------- | ------------------- | ---------------------------------------------------------------- |\n| data      | \u003ccode\u003eany\u003c/code\u003e    | Data to convert                                                  |\n| filename  | \u003ccode\u003estring\u003c/code\u003e | Filename for the resulting file                                  |\n| extension | \u003ccode\u003estring\u003c/code\u003e | Extension to use for the file. Use the EXTENSIONS enum as helper |\n| mimeType  | \u003ccode\u003estring\u003c/code\u003e | MIME expresssion. Use the MIMES enum as helper                   |\n\n\u003ca name=\"Exporter.convertJSONToCsv\"\u003e\u003c/a\u003e\n\n### Exporter.convertJSONToCsv(json) ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nConverts JSON to CSV\n\n**Kind**: static method of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - String representation of a CSV\n\n| Param | Type                                                     | Description            |\n| ----- | -------------------------------------------------------- | ---------------------- |\n| json  | \u003ccode\u003eobject\u003c/code\u003e \\| \u003ccode\u003eArray.\u0026lt;object\u0026gt;\u003c/code\u003e | JSON to convert to CSV |\n\n\u003ca name=\"Exporter.stringifyJSON\"\u003e\u003c/a\u003e\n\n### Exporter.stringifyJSON(json, [pretty]) ⇒ \u003ccode\u003estring\u003c/code\u003e\n\nStringifies JSON\n\n**Kind**: static method of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n**Returns**: \u003ccode\u003estring\u003c/code\u003e - Stringified JSON\n\n| Param    | Type                                                     | Default            | Description                 |\n| -------- | -------------------------------------------------------- | ------------------ | --------------------------- |\n| json     | \u003ccode\u003eobject\u003c/code\u003e \\| \u003ccode\u003eArray.\u0026lt;object\u0026gt;\u003c/code\u003e |                    | JSON to stringify           |\n| [pretty] | \u003ccode\u003eboolean\u003c/code\u003e                                     | \u003ccode\u003efalse\u003c/code\u003e | Whether to use nice spacing |\n\n\u003ca name=\"Exporter.save\"\u003e\u003c/a\u003e\n\n### Exporter.save()\n\nTriggers file download\n\n**Kind**: static method of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n\u003ca name=\"Exporter.saveJSON\"\u003e\u003c/a\u003e\n\n### Exporter.saveJSON()\n\nShortcut to save as JSON\nProcesses JSON directly\n\n**Kind**: static method of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n\u003ca name=\"Exporter.saveCSV\"\u003e\u003c/a\u003e\n\n### Exporter.saveCSV()\n\nShortcut to save as CSV\nProcesses JSON as CSV\n\n**Kind**: static method of [\u003ccode\u003eExporter\u003c/code\u003e](#Exporter)  \n\u003ca name=\"MIMES\"\u003e\u003c/a\u003e\n\n## MIMES\n\n**Kind**: global enum  \n\u003ca name=\"EXTENSIONS\"\u003e\u003c/a\u003e\n\n## EXTENSIONS\n\n**Kind**: global enum\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fdata-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falrico88%2Fdata-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falrico88%2Fdata-exporter/lists"}