{"id":20720176,"url":"https://github.com/scalajs-io/express-csv","last_synced_at":"2026-04-12T17:44:19.742Z","repository":{"id":77422505,"uuid":"81658256","full_name":"scalajs-io/express-csv","owner":"scalajs-io","description":"express-csv provides response csv easily to express.","archived":false,"fork":false,"pushed_at":"2019-06-17T23:08:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T22:42:41.650Z","etag":null,"topics":["csv","express","expressjs","node","nodejs","npm","npm-package"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalajs-io.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":"2017-02-11T14:30:28.000Z","updated_at":"2019-06-17T23:08:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bea5662-dfe8-4c30-8d81-dfeafb4f0111","html_url":"https://github.com/scalajs-io/express-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/scalajs-io%2Fexpress-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fexpress-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fexpress-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fexpress-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalajs-io","download_url":"https://codeload.github.com/scalajs-io/express-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242995884,"owners_count":20218815,"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","express","expressjs","node","nodejs","npm","npm-package"],"created_at":"2024-11-17T03:19:33.765Z","updated_at":"2026-04-12T17:44:14.717Z","avatar_url":"https://github.com/scalajs-io.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"ExpressCSV API for Scala.js\n================================\n[express-csv](https://www.npmjs.com/package/express-csv) provides response csv easily to express.\n\n### Description\n\n\u003cpre\u003e\n _____                                 ____ ______     __\n| ____|_  ___ __  _ __ ___  ___ ___   / ___/ ___\\ \\   / /\n|  _| \\ \\/ / '_ \\| '__/ _ \\/ __/ __| | |   \\___ \\\\ \\ / / \n| |___ \u003e  \u003c| |_) | | |  __/\\__ \\__ \\ | |___ ___) |\\ V /  \n|_____/_/\\_\\ .__/|_|  \\___||___/___/  \\____|____/  \\_/   \n           |_|                                                      \n\u003c/pre\u003e\n\nExpress CSV provides response CSV easily to Express.\n\n### Build Dependencies\n\n* [SBT v1.2.x](http://www.scala-sbt.org/download.html)\n\n### Build/publish the SDK locally\n\n```bash\n $ sbt clean publish-local\n```\n\n### Running the tests\n\nBefore running the tests the first time, you must ensure the npm packages are installed:\n\n```bash\n$ npm install\n```\n\nThen you can run the tests:\n\n```bash\n$ sbt test\n```\n\n### Examples\n\n##### A simple Express Server with CSV\n\n```scala\nimport io.scalajs.npm.express._\nimport io.scalajs.npm.express.csv._\nimport scalajs.js\n\n// load the Express modules\nval app = Express()\nExpressCSV\n\napp.get(\"/\", { (_: Request, res: Response with CSVResponse) =\u003e\n    res.csv(\n        js.Array(\n          js.Array(\"a\", \"b\", \"c\"),\n          js.Array(\"d\", \"e\", \"f\")\n        ))\n    })\n  .listen(8080)\n```\n\n##### A simple client example\n\n```scala\nimport io.scalajs.nodejs.http._\nimport io.scalajs.npm.express.csv._\n\nHttp.get(\"http://localhost:8080/\", { response: ServerResponse =\u003e\n    response.onData { chunk =\u003e\n        val data = chunk.toString().split('\\n').map(_.trim).mkString(\"|\")\n        println(data) // \"a\",\"b\",\"c\"|\"d\",\"e\",\"f\"\n    }\n})\n```\n\n### Artifacts and Resolvers\n\nTo add the `ExpressCSV` binding to your project, add the following to your build.sbt:  \n\n```sbt\nlibraryDependencies += \"io.scalajs.npm\" %%% \"express-csv\" % \"0.5.0\"\n```\n\nOptionally, you may add the Sonatype Repository resolver:\n\n```sbt   \nresolvers += Resolver.sonatypeRepo(\"releases\") \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalajs-io%2Fexpress-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalajs-io%2Fexpress-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalajs-io%2Fexpress-csv/lists"}