// Generated by CoffeeScript 2.3.2
(function() {
  var ConfigNode, CsvEncoder, Promise, stringify;

  Promise = require("bluebird");

  ({ConfigNode} = require("@l.degener/irma-config"));

  stringify = Promise.promisify(require("csv-stringify"));

  module.exports = CsvEncoder = class CsvEncoder extends ConfigNode {
    encode(data) {
      return stringify(data, this._options);
    }

  };

}).call(this);
