{"id":21766040,"url":"https://github.com/narazaka/to_deep_csv","last_synced_at":"2026-05-06T18:37:15.440Z","repository":{"id":62559146,"uuid":"137177483","full_name":"Narazaka/to_deep_csv","owner":"Narazaka","description":"to_csv for Array\u003cArray\u003e, Array\u003cHash\u003e, Array\u003cActiveRecord::Base\u003e, ActiveRecord::Relation etc.","archived":false,"fork":false,"pushed_at":"2020-03-05T22:25:00.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T10:04:57.866Z","etag":null,"topics":["activerecord","csv","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Narazaka.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}},"created_at":"2018-06-13T07:16:22.000Z","updated_at":"2020-03-05T22:25:02.000Z","dependencies_parsed_at":"2022-11-03T11:15:48.265Z","dependency_job_id":null,"html_url":"https://github.com/Narazaka/to_deep_csv","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Narazaka/to_deep_csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fto_deep_csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fto_deep_csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fto_deep_csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fto_deep_csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Narazaka","download_url":"https://codeload.github.com/Narazaka/to_deep_csv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fto_deep_csv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510379,"owners_count":23940649,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["activerecord","csv","ruby"],"created_at":"2024-11-26T13:14:56.938Z","updated_at":"2026-05-06T18:37:15.406Z","avatar_url":"https://github.com/Narazaka.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# to_deep_csv\n\nto_csv for `Array\u003cArray\u003e`, `Array\u003cHash\u003e`, `Array\u003cActiveRecord::Base\u003e`, `ActiveRecord::Relation` etc.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'to_deep_csv'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install to_deep_csv\n\n## Usage\n\n```ruby\nrequire \"to_deep_csv\"\n\n[{a: 1, b: 2}].to_deep_csv(headers: true)\n[[1, 2]].to_deep_csv\n[[1, 2]].to_deep_csv(headers: true, columns: [:a, :b])\n{:a =\u003e 1}.to_a.to_deep_csv\n\n# for ActiveRecord\nFoo.all.to_deep_csv(headers: true)\nFoo.all.to_deep_csv(columns: [:id, :name])\nFoo.all.select(:id, :name).to_deep_csv\nFoo.all.group(:type).count.to_a.to_deep_csv(headers: true, columns: [:type, :count])\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Narazaka/to_deep_csv.\n\n## License\n\nThis is released under The [Zlib License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarazaka%2Fto_deep_csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarazaka%2Fto_deep_csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarazaka%2Fto_deep_csv/lists"}