Skip to content

Commit 6bed255

Browse files
committed
Updating travis testing, adding info to README
1 parent eacbd97 commit 6bed255

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- '0.10'
5-
- '0.11'
6-
- '0.12'
7-
- 'iojs'
8-
matrix:
9-
allow_failures:
10-
- node_js: '0.11'
4+
- '4.8'
5+
- '5.12'
6+
- '6.13'
7+
- '7.10'
8+
- '8.9'
9+
- '9.6'

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6662
For 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

9591
For 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

Comments
 (0)