{"id":13743942,"url":"https://github.com/lizardon/CSV4AS3","last_synced_at":"2025-05-09T02:31:59.210Z","repository":{"id":9504416,"uuid":"11398253","full_name":"lizardon/CSV4AS3","owner":"lizardon","description":"CSV library for Actionscript ported from Apache Commons CSV","archived":false,"fork":false,"pushed_at":"2013-09-22T11:53:38.000Z","size":136,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T05:02:51.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","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/lizardon.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}},"created_at":"2013-07-14T04:19:10.000Z","updated_at":"2024-05-17T14:27:33.000Z","dependencies_parsed_at":"2022-09-08T06:20:37.786Z","dependency_job_id":null,"html_url":"https://github.com/lizardon/CSV4AS3","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/lizardon%2FCSV4AS3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizardon%2FCSV4AS3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizardon%2FCSV4AS3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizardon%2FCSV4AS3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lizardon","download_url":"https://codeload.github.com/lizardon/CSV4AS3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224802843,"owners_count":17372511,"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-08-03T05:01:00.087Z","updated_at":"2024-11-15T15:31:08.477Z","avatar_url":"https://github.com/lizardon.png","language":"ActionScript","readme":"CSV4AS3 is a CSV library for Actionscript that has been ported from Apache Commons CSV\n\nAdvantages of this library include:\n* Ability to parse incrementally without the need to read entire file into memory\n* Support for custom CSV format settings\n* Support for handling escapes and comments\n* Includes a CSV printer\n* Supports UTF8 compatible text formats\n\nGetting Started - Parsing a CSV File\n\nStep 1: Create and open a IDataInput object such as a FileStream\n\n    var file:File = new File(\"C:\\\\Users\\\\userdir\\\\test.csv\");\n    var input:FileStream = new FileStream();\n    input.open(file, FileMode.READ);\n\n\nStep 2: Create and Configure A CSVParser:\n\n    // in this case the CSV file has a header\n    var parser:CSVParser = new CSVParser(input, CSVFormat.buildDefaultWithHeader());\n    var headerMap:Object = parser.getHeaderMap(); \n\nStep 3: Iterate over the records\n\n    var record:CSVRecord;\n    while(parser.hasNext())\n    {\n      record = parser.next();\n \n      for (var columnName:String in headerMap)\n      {\n        trace(columnName + \": \" + record.getValueByName(columnName));\n      }\n    }\n\n\nAlternatively parser.getRecords() will return an Array of CSVRecords of all the remaining rows in the file without needing to iterate.\n\nStep 4: Close the input source\n\n    input.close();\n","funding_links":[],"categories":["File Formats"],"sub_categories":["Misc Formats"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizardon%2FCSV4AS3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flizardon%2FCSV4AS3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizardon%2FCSV4AS3/lists"}