{"id":50840149,"url":"https://github.com/securedeveloper/react-data-export","last_synced_at":"2026-06-14T06:07:13.677Z","repository":{"id":25909505,"uuid":"106870946","full_name":"securedeveloper/react-data-export","owner":"securedeveloper","description":"Export dataset in react.","archived":false,"fork":false,"pushed_at":"2023-08-17T16:37:43.000Z","size":439,"stargazers_count":176,"open_issues_count":78,"forks_count":206,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-03-27T23:29:31.370Z","etag":null,"topics":["export-excel","react","react-export-data","react-export-dataset","react-export-excel-data"],"latest_commit_sha":null,"homepage":"https://securedeveloper.github.io/react-data-export/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/securedeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-10-13T20:35:38.000Z","updated_at":"2026-01-06T12:23:36.000Z","dependencies_parsed_at":"2024-06-18T12:44:38.983Z","dependency_job_id":null,"html_url":"https://github.com/securedeveloper/react-data-export","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/securedeveloper/react-data-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/securedeveloper%2Freact-data-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/securedeveloper%2Freact-data-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/securedeveloper%2Freact-data-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/securedeveloper%2Freact-data-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/securedeveloper","download_url":"https://codeload.github.com/securedeveloper/react-data-export/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/securedeveloper%2Freact-data-export/sbom","scorecard":{"id":809182,"data":{"date":"2025-08-11","repo":{"name":"github.com/securedeveloper/react-data-export","commit":"094f67fa02a491b0f0a248c8f83bc617c8166568"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"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":"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":"Code-Review","score":6,"reason":"Found 3/5 approved changesets -- score normalized to 6","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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T12:38:58.260Z","repository_id":25909505,"created_at":"2025-08-23T12:38:58.261Z","updated_at":"2025-08-23T12:38:58.261Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34310825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":["export-excel","react","react-export-data","react-export-dataset","react-export-excel-data"],"created_at":"2026-06-14T06:07:12.821Z","updated_at":"2026-06-14T06:07:13.664Z","avatar_url":"https://github.com/securedeveloper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Data-Export\n\n##### :warning: A complete re-write is coming soon (we won't need xlsx package anymore (It will be backward compatible):warning: \n\n## :new: I am re-writing complete excel api in JavaScript, please consider contributing or putting your ideas here https://github.com/securedeveloper/javascript-excel (After finishing will update this library)\n(:exclamation::exclamation::exclamation:The purpose of having a new library is that open source libraries either does not support styling and rest functionality in excel or they are too heavy to  consider)\n\n[![npm version](https://badge.fury.io/js/react-data-export.svg)](https://badge.fury.io/js/react-data-export)\n[![dependencies Status](https://david-dm.org/securedeveloper/react-data-export/status.svg)](https://david-dm.org/securedeveloper/react-data-export)\n[![devDependencies Status](https://david-dm.org/securedeveloper/react-data-export/dev-status.svg)](https://david-dm.org/securedeveloper/react-data-export?type=dev)\n[![Build Status](https://travis-ci.org/securedeveloper/react-data-export.svg?branch=master)](https://travis-ci.org/securedeveloper/react-data-export)\n[![Vulnerabilities](https://snyk.io/test/github/securedeveloper/react-data-export/badge.svg)](https://snyk.io/test/github/securedeveloper/react-data-export)\n[![Coverage Status](https://coveralls.io/repos/github/securedeveloper/react-data-export/badge.svg?branch=master)](https://coveralls.io/github/securedeveloper/react-data-export?branch=master)\n\n\nA data export library built with and for [React](http://facebook.github.io/react/index.html). \n\n## Installation\n\nWith [npm](https://www.npmjs.org/package/react-data-export):\n\n```sh\nnpm install react-data-export --save\n```\n\n## Code Examples\n* [Simple Excel Export](examples/simple_excel_export_01.md)\n* [Excel Export with Dataset](examples/simple_excel_export_02.md)\n* [Excel Export with Custom Download Button](examples/with_custom_download_element.md)\n* [Excel Export with custom cells style](examples/styled_excel_sheet.md)\n\n## Excel Props\n| Prop          | Type                 | Default    | Required | Description                      \n| :------------ | :------------------- | :--------- | :------- | :-------------------------------------------------\n| hideElement\t| `bool`\t\t\t   | false      | `false`  | To hide the button \u0026 directly download excel file\n| filename      | `string`             | Download   | `false`  | Excel file name to be downloaded \n| fileExtension | `string`             | xlsx       | `false`  | Download file extension [xlsx]\n| element       | `HTMLElement`        | `\u003cbutton\u003e` | `false`  | Element to download excel file\n| children      | `Array\u003cExcelSheet\u003e`  |  `null`    | `true`   | ExcelSheet Represents data\n\n### ExcelSheet Props\n| Prop          | Type                    | Default    | Required | Description                      \n| :------------ | :---------------------- | :--------- | :------- | :------------------------------- \n| name          | `string`                | `\"\"`       | `true`   | Sheet name in file \n| data          | `array\u003cobject\u003e`         | `null`     | `false`  | Excel Sheet data \n| dataSet       | `array\u003cExcelSheetData\u003e` | `null`     | `false`  | Excel Sheet data\n| children      | `ExcelColumn`           |  `null`    | `false`  | ExcelColumns\n\n**Note:** In ExcelSheet props `dataSet` has `precedence` over `data` and `children` props.\n\nFor further types and definitions [Read More](types/types.md)\n\n## Cell Style\n\nCell styles are specified by a style object that roughly parallels the OpenXML structure.  The style object has five\ntop-level attributes: `fill`, `font`, `numFmt`, `alignment`, and `border`.\n\n| Style Attribute | Sub Attributes | Values |\n| :-------------- | :------------- | :------------- |\n| fill            | patternType    |  `\"solid\"` or `\"none\"`\n|                 | fgColor        |  `COLOR_SPEC`\n|                 | bgColor        |  `COLOR_SPEC`\n| font            | name           |  `\"Calibri\"` // default\n|                 | sz             |  `\"11\"` // font size in points\n|                 | color          |  `COLOR_SPEC`\n|                 | bold           |  `true` or `false`\n|                 | underline      |  `true` or `false`\n|                 | italic         |  `true` or `false`\n|                 | strike         |  `true` or `false`\n|                 | outline        |  `true` or `false`\n|                 | shadow         |  `true` or `false`\n|                 | vertAlign      |  `true` or `false`\n| numFmt          |                |  `\"0\"`  // integer index to built in formats, see StyleBuilder.SSF property\n|                 |                |  `\"0.00%\"` // string matching a built-in format, see StyleBuilder.SSF\n|                 |                |  `\"0.0%\"`  // string specifying a custom format\n|                 |                |  `\"0.00%;\\\\(0.00%\\\\);\\\\-;@\"` // string specifying a custom format, escaping special characters\n|                 |                |  `\"m/dd/yy\"` // string a date format using Excel's format notation\n| alignment       | vertical       | `\"bottom\"` or `\"center\"` or `\"top\"`\n|                 | horizontal     | `\"bottom\"` or `\"center\"` or `\"top\"`\n|                 | wrapText       |  `true ` or ` false`\n|                 | readingOrder   |  `2` // for right-to-left\n|                 | textRotation   | Number from `0` to `180` or `255` (default is `0`)\n|                 |                |  `90` is rotated up 90 degrees\n|                 |                |  `45` is rotated up 45 degrees\n|                 |                | `135` is rotated down 45 degrees\n|                 |                | `180` is rotated down 180 degrees\n|                 |                | `255` is special,  aligned vertically\n| border          | top            | `{ style: BORDER_STYLE, color: COLOR_SPEC }`\n|                 | bottom         | `{ style: BORDER_STYLE, color: COLOR_SPEC }`\n|                 | left           | `{ style: BORDER_STYLE, color: COLOR_SPEC }`\n|                 | right          | `{ style: BORDER_STYLE, color: COLOR_SPEC }`\n|                 | diagonal       | `{ style: BORDER_STYLE, color: COLOR_SPEC }`\n|                 | diagonalUp     | `true` or `false`\n|                 | diagonalDown   | `true` or `false`\n\n**COLOR_SPEC**: Colors for `fill`, `font`, and `border` are specified as objects, either:\n* `{ auto: 1}` specifying automatic values\n* `{ rgb: \"FFFFAA00\" }` specifying a hex ARGB value\n* `{ theme: \"1\", tint: \"-0.25\"}` specifying an integer index to a theme color and a tint value (default 0)\n* `{ indexed: 64}` default value for `fill.bgColor`\n\n**BORDER_STYLE**: Border style is a string value which may take on one of the following values:\n * `thin`\n * `medium`\n * `thick`\n * `dotted`\n * `hair`\n * `dashed`\n * `mediumDashed`\n * `dashDot`\n * `mediumDashDot`\n * `dashDotDot`\n * `mediumDashDotDot`\n * `slantDashDot`\n\n\nBorders for merged areas are specified for each cell within the merged area.  So to apply a box border to a merged area of 3x3 cells, border styles would need to be specified for eight different cells:\n* left borders for the three cells on the left,\n* right borders for the cells on the right\n* top borders for the cells on the top\n* bottom borders for the cells on the left\n\n\n## Dependencies \nThis library uses [file-saver](https://www.npmjs.com/package/file-saver) and [xlsx](https://www.npmjs.com/package/xlsx) and using [json-loader](https://www.npmjs.com/package/json-loader) will do the magic for you.\n\n\n```javascript\n///webpack.config.js\nvendor: [\n        .....\n        'xlsx',\n        'file-saver'\n],\n.....\nnode: {fs: 'empty'},\nexternals: [\n    {'./cptable': 'var cptable'},\n    {'./jszip': 'jszip'}\n ]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecuredeveloper%2Freact-data-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecuredeveloper%2Freact-data-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecuredeveloper%2Freact-data-export/lists"}