UNPKG

apigeek-affirm

Version:

A BDD/Gherkin micro-framework for REST APIs

9 lines (8 loc) 259 B
var Converter = require("csvtojson").Converter; module.exports = function(raw, done) { var converter = new Converter({}); converter.fromString(raw, function(err,result){ //console.log("CSV: %s -> %j", raw, result); done(err,result); }); }