From 8dc61aabc58c385542f32f194162577005dd7ccc Mon Sep 17 00:00:00 2001 From: Ruben Amaury Date: Mon, 24 Jun 2019 09:03:01 -0500 Subject: [PATCH] Fixing example code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f20c2a8..4e4a4477 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ To read a csv with headers create a read stream and pipe it to parser. ```javascript fs.createReadStream('path/to/my.csv') - .pipe(csv.parse({ headers: true }) - .on('data' row => console.log(row)) + .pipe(csv.parse({ headers: true })) + .on('data', row => console.log(row)) ``` For more in depth parsing examples and docs check out the [parsing docs](./docs/parsing.md)