@@ -26,11 +26,7 @@ var converter = require('json-2-csv');
2626
2727### API
2828
29- #### json2csv Documentation
30-
31- ``` javascript
32- json2csv (array, callback, options)
33- ```
29+ #### json2csv(array, callback, options)
3430
3531* ` array ` - An array of JSON documents to be converted to CSV.
3632* ` callback ` - A function of the form ` function (err, csv) ` ;
@@ -65,11 +61,11 @@ json2csv(array, callback, options)
6561
6662For examples, please refer to the [ json2csv API Documentation (Link)] ( https://github.com/mrodrig/json-2-csv/wiki/json2csv-Documentation )
6763
68- #### csv2json Documentation
64+ #### Promisified Version: json2csvPromisified(array, options).then(...).catch(...);
6965
70- ``` javascript
71- csv2json (csv, callback, options)
72- ```
66+ Available in version ` 2.2.0 ` , this functionality makes use of promises from the ` bluebird ` module.
67+
68+ #### csv2json(csv, callback, options)
7369
7470* ` csv ` - A string of CSV
7571* ` callback ` - A function of the form ` function (err, array) ` ; This function will receive any errors and/or the array of JSON documents generated.
@@ -94,6 +90,10 @@ csv2json(csv, callback, options)
9490
9591For examples, please refer to the [ csv2json API Documentation (Link)] ( https://github.com/mrodrig/json-2-csv/wiki/csv2json-Documentation )
9692
93+ #### Promisified Version: csv2jsonPromisified(csv, options).then(...).catch(...);
94+
95+ Available in version ` 2.2.0 ` , this functionality makes use of promises from the ` bluebird ` module.
96+
9797## Tests
9898
9999``` bash
@@ -130,3 +130,4 @@ Please find the updated list (relocated to the Wiki) here: [Frequently Asked Que
130130* Promisifiable via bluebird's .promisify(<function >) and .promisifyAll(<object >) (as of 1.1.1)
131131* Wrapped value support for json2csv and csv2json (as of 1.3.0)
132132* Support for multiple different schemas (as of 1.4.0)
133+ * Promisified versions of the functions are now available by default: json2csvPromisified, csv2jsonPromisified (as of 2.2.0)
0 commit comments