{"id":19936849,"url":"https://github.com/belphemur/vue-json-csv","last_synced_at":"2025-04-05T04:14:41.603Z","repository":{"id":39610557,"uuid":"145018766","full_name":"Belphemur/vue-json-csv","owner":"Belphemur","description":"VueJS component to export Json Data into CSV file and download the resulting file.","archived":false,"fork":false,"pushed_at":"2024-03-15T15:05:18.000Z","size":4612,"stargazers_count":125,"open_issues_count":37,"forks_count":28,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-03-29T03:11:33.800Z","etag":null,"topics":["csv","export","json-data","vuejs-components","vuejs2"],"latest_commit_sha":null,"homepage":null,"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/Belphemur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-08-16T17:20:34.000Z","updated_at":"2024-12-04T14:29:59.000Z","dependencies_parsed_at":"2024-06-18T15:15:33.532Z","dependency_job_id":"e3e0b2fc-db62-426a-bc18-d1ac97129c66","html_url":"https://github.com/Belphemur/vue-json-csv","commit_stats":{"total_commits":327,"total_committers":14,"mean_commits":"23.357142857142858","dds":0.2844036697247706,"last_synced_commit":"7dac13ba6e429d7790c3113b04de5d167ec183ec"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fvue-json-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fvue-json-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fvue-json-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fvue-json-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Belphemur","download_url":"https://codeload.github.com/Belphemur/vue-json-csv/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284953,"owners_count":20913704,"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","export","json-data","vuejs-components","vuejs2"],"created_at":"2024-11-12T23:29:12.690Z","updated_at":"2025-04-05T04:14:41.581Z","avatar_url":"https://github.com/Belphemur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue JSON to CSV file\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FBelphemur%2Fvue-json-csv.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FBelphemur%2Fvue-json-csv?ref=badge_shield) [![NodeJs](https://github.com/Belphemur/vue-json-csv/actions/workflows/nodejs.yml/badge.svg)](https://github.com/Belphemur/vue-json-csv/actions/workflows/nodejs.yml)\n\nVueJS component to export Json Data into CSV file and download the resulting file.\n## Example\n[GitHub Pages](https://belphemur.github.io/vue-json-csv/)\n\n## Getting started\n\nGet the package:\n```bash\nyarn add vue-json-csv\n```\n\nRegister JsonCSV in your app entrypoint:\n```js\nimport Vue from 'vue'\nimport JsonCSV from 'vue-json-csv'\n\nVue.component('downloadCsv', JsonCSV)\n```\n\nIn your template\n```html\n\u003cdownload-csv\n    :data   = \"json_data\"\u003e\n    Download Data\n    \u003cimg src=\"download_icon.png\"\u003e\n\u003c/download-csv\u003e\n```\n\n## Props List\n\n| Name             | Type  | Description |\n| :---             | :---: | ---         |\n| data  | Array  | (_required_) Data to be exported |\n| fields  | Array/Function(value, key)  | fields inside the Json Object that you want to export. If no given, all the properties in the Json are exported. Use the function to filter the data and only keep the properties you want. |\n| labels  | Object/Function(value, key)  | Set the label for the header row. |\n| name    | string | filename to export, default: data.csv |\n| delimiter| string| Default \",\". Can be changed to anything.|\n| separator-excel| boolean|If true, will prepend `SEP={delimiter}` to the file to make it easily usable with Excel|\n| encoding| string|Set the wanted encoding, default to 'utf-8'|\n| advancedOptions| Object|You can set all the [options of PapaParse](https://www.papaparse.com/docs#config) yourself |\n\n## Example\n\n```js\nimport Vue from 'vue'\nimport JsonCSV from 'vue-json-csv'\n\nVue.component('downloadCsv', JsonCSV)\n\nconst app = new Vue({\n    el: '#app',\n    data: {     \n        json_data: [\n            {\n                'name': 'Tony Peña',\n                'city': 'New York',\n                'country': 'United States',\n                'birthdate': '1978-03-15',\n                'phone': {\n                    'mobile': '1-541-754-3010',\n                    'landline': '(541) 754-3010'\n                }\n            },\n            {\n                'name': 'Thessaloniki',\n                'city': 'Athens',\n                'country': 'Greece',\n                'birthdate': '1987-11-23',\n                'phone': {\n                    'mobile': '+1 855 275 5071',\n                    'landline': '(2741) 2621-244'\n                }\n            }\n        ]\n    }\n})\n```\n\nIn your Template call it like\n\n```html\n\u003cdownload-csv\n\tclass   = \"btn btn-default\"\n\t:data   = \"json_data\"\n\tname    = \"filename.csv\"\u003e\n\n\tDownload CSV (This is a slot)\n\n\u003c/download-csv\u003e\n```\nREQUIRED\n- json_data: Contains the data you want to export\n\n\n## License\nMIT\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FBelphemur%2Fvue-json-csv.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FBelphemur%2Fvue-json-csv?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelphemur%2Fvue-json-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelphemur%2Fvue-json-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelphemur%2Fvue-json-csv/lists"}