{"id":15492125,"url":"https://github.com/imjuni/simple-csv","last_synced_at":"2025-04-05T07:11:58.132Z","repository":{"id":57359943,"uuid":"51812674","full_name":"imjuni/simple-csv","owner":"imjuni","description":"Simple CSV generator for Node.js","archived":false,"fork":false,"pushed_at":"2016-05-10T04:40:56.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T04:11:28.141Z","etag":null,"topics":[],"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/imjuni.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}},"created_at":"2016-02-16T06:14:40.000Z","updated_at":"2016-02-17T09:58:54.000Z","dependencies_parsed_at":"2022-09-06T22:22:31.211Z","dependency_job_id":null,"html_url":"https://github.com/imjuni/simple-csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fsimple-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fsimple-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fsimple-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjuni%2Fsimple-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjuni","download_url":"https://codeload.github.com/imjuni/simple-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299850,"owners_count":20916193,"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":[],"created_at":"2024-10-02T07:58:55.839Z","updated_at":"2025-04-05T07:11:58.115Z","avatar_url":"https://github.com/imjuni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple-CSV\n====\n\nSimple csv generator for Node.js. Simple CSV is super simple and easy.\n\n# Function\n* `append` - set data on buffer and array\n* `write` - write file on disk\n* `Data` - get data array \n* `Buf` - get Buffer\n\n# Options\n* `encoding` - Encoding for Buffer class. If you don't set this value, then the default is 'utf8'\n* `sep` - Column separation character. If you want tsv file, set '\\t'. If you don't set this value, then the default is\n','\n* `surrounder` - Surrounder for specific case, has linefeed or comma etc\n* `EOL` - Row separation character. If you don't set this value, then the default is require('os').EOL\n* `interval` - If you set huge size data using append method, append method use setInterval\ninstead of for, while loop. Because If you using on Express or http server, not blocking response.\ninterval set setInterval interval\n* excel - If you use csv file in excel, enable this flag true. That is prevent long number,\nfor example 1006201603211027052281012300 is automatic covert scientific notation. If\nthis flag enable set true, converted =\"1006201603211027052281012300\" so that is prevent\nconversion to scientific notation. But default value is false.\n\n# Example\nIf you more example, see below examples directory.\n```\n'use strict';\n\nvar co = require('co');\nvar debug = require('debug')('ssc:example');\nvar SimpleCSV = require('../lib/csv.js');\n\nlet data = [\n  [1, 2, 3, 4],\n  ['a', 'b', 'c', 'd'],\n  ['a', ',b,', 'c', 'd'],\n  ['a', 'b,\"\"', 'c\"\"', 'd'],\n  ['e', 'f', 'g', 'h\\nh\\nh'],\n  ['한', '글', '입', '력'],\n  ['한', '글', '입', '력']\n];\n\nlet csv = new SimpleCSV();\n\nco(function* a () {\n  yield csv.append(data);\n  yield csv.write('test.csv');\n}).then(function () {\n  debug('Complete, ... generated test.csv')\n}).catch(function (err) {\n  debug('Error caused, ...');\n  debug(err.message);\n  debug(err.stack);\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjuni%2Fsimple-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjuni%2Fsimple-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjuni%2Fsimple-csv/lists"}