mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
187 B
TypeScript
9 lines
187 B
TypeScript
import csv2json = require("csv2json");
|
|
import fs = require("fs");
|
|
|
|
fs.createReadStream('data.csv')
|
|
.pipe(csv2json({
|
|
separator: ';'
|
|
}))
|
|
.pipe(fs.createWriteStream('data.json'));
|