{"id":18417785,"url":"https://github.com/danieljdufour/easy-file-saver","last_synced_at":"2026-04-21T16:41:08.572Z","repository":{"id":48186780,"uuid":"314399271","full_name":"DanielJDufour/easy-file-saver","owner":"DanielJDufour","description":"Very Easily Save a File","archived":false,"fork":false,"pushed_at":"2023-08-31T19:56:27.000Z","size":526,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T06:02:56.145Z","etag":null,"topics":["csv","data","download","file","file-saver","javascript","js","json","save"],"latest_commit_sha":null,"homepage":"https://danieljdufour.com/easy-file-saver/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-11-19T23:59:47.000Z","updated_at":"2024-04-04T22:57:18.000Z","dependencies_parsed_at":"2024-06-11T19:27:18.206Z","dependency_job_id":null,"html_url":"https://github.com/DanielJDufour/easy-file-saver","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"cac52ebc5bec23ac33cff3ca0d5f3a772f862aa4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DanielJDufour/easy-file-saver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Feasy-file-saver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Feasy-file-saver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Feasy-file-saver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Feasy-file-saver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/easy-file-saver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Feasy-file-saver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768512,"owners_count":22908228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["csv","data","download","file","file-saver","javascript","js","json","save"],"created_at":"2024-11-06T04:11:16.157Z","updated_at":"2026-04-21T16:41:08.490Z","avatar_url":"https://github.com/DanielJDufour.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy-file-saver\nVery Easily Save a File\n\n# demo\nhttps://danieljdufour.com/easy-file-saver/\n\n# install\n```bash\nnpm install easy-file-saver\n```\nor\n```html\n\u003cscript src=\"https://unpkg.com/easy-file-saver\"\u003e\u003c/script\u003e\n```\n\n# usage\n```js\nconst saveFile = require(\"easy-file-saver\");\n\nconst countries = [\n    { name: \"United States of America\", abbreviation: \"USA\" },\n    { name: \"Canada\", abbreviation: \"CA\" },\n    { name: \"Mexico\", abbreviation: \"MX\" }\n];\nsaveFile({ data: countries, debug: true, filename: \"countries.csv\" });\nsaveFile({ data: countries, debug: true, filename: \"countries.tsv\" });\nsaveFile({ data: countries, debug: true, filename: \"countries.json\" });\nsaveFile({ data: countries.map(c =\u003e `${c.name} (${c.abbreviation})`).join(\"\\n\"), debug: true, filename: \"countries.txt\" });\n```\n\n# features\nsaveFile supports the following conversions:\n| data source      | output formats |\n| ---------------- | -------------- |\n| ArrayBuffer      | .csv, .jpg, .json, .html, .pdf, .png, .tsv, .txt, .webp |\n| Array of Arrays  | .csv, .json, .tsv     |\n| Array of Objects | .csv, .json, .tsv     |\n| Blob             | .csv, .jpg, .json, .html, .png, .tsv, .txt, .webp |\n| Canvas           | .jpg, .png, .webp |\n| Data URL         | .csv, .jpg, .json, .html, .png, .tsv, .txt, .webp |\n| File             | .csv, .jpg, .json, .html, .png, .tsv, .txt, .webp |\n| HTML Element     | .html  |\n| Image | .jpg, .png, .webp |\n| Object           | .json  |\n| String           | .html, .js, .py, .txt |\n| Uint8Array       | .csv, .jpg, .json, .html, .pdf, .png, .tsv, .txt, .webp |\n\n# any formats missing?\nPost an issue at https://github.com/DanielJDufour/easy-file-saver or submit a Pull Request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Feasy-file-saver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Feasy-file-saver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Feasy-file-saver/lists"}