Skip to content

Commit

Permalink
Merge pull request #47 from t32k/fix-csv-format
Browse files Browse the repository at this point in the history
Fix csv format
  • Loading branch information
Shogo Sensui committed Mar 27, 2014
2 parents d33361f + a2d4eac commit ced2dd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ stats.parse(function(result) {
console.log(json);
break;
case 'csv':
Object.keys(result).forEach(function(key) {
result[key] = Array.isArray(result[key]) ? result[key].join(' ') : result[key];
});
json2csv({
data: result,
fields: Object.keys(result)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylestats",
"version": "3.0.1",
"version": "3.0.2",
"main": "lib/stylestats.js",
"bin": {
"stylestats": "bin/cli.js"
Expand Down

0 comments on commit ced2dd2

Please sign in to comment.