Created
April 23, 2023 13:53
-
-
Save 4513ECHO/512586c635a58b7954c89b82e618bb6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CsvParseStream } from "https://deno.land/[email protected]/csv/csv_parse_stream.ts"; | |
const file = await Deno.open("data.csv"); | |
const stream = file.readable | |
.pipeThrough(new TextDecoderStream("shift-jis")) | |
.pipeThrough(new CsvParseStream()); | |
for await (const record of stream) { | |
console.log(record); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment