From 6c9b2c70457353b8b1c074a0755ae2e5b4d2fa6d Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Wed, 25 Mar 2020 16:11:29 -0400 Subject: [PATCH] docs: typo in transforms destructure, closes #448 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77f22c75..9b60305b 100644 --- a/README.md +++ b/README.md @@ -876,7 +876,7 @@ const csv = json2csvParser.parse(myData); should be replaced by ```js -const { Parser, transform: { unwind, flatten } } = require('json2csv'); +const { Parser, transforms: { unwind, flatten } } = require('json2csv'); const json2csvParser = new Parser({ transforms: [unwind(paths, true), flatten('__')] }); const csv = json2csvParser.parse(myData); ```