Skip to content

Instantly share code, notes, and snippets.

@sandywu
Forked from max-mapper/index.js
Created August 20, 2012 06:31
Show Gist options
  • Save sandywu/3401566 to your computer and use it in GitHub Desktop.
Save sandywu/3401566 to your computer and use it in GitHub Desktop.
official semicolon style of @maxogden
Mdb.prototype.toCSV = function(table, cb) {
;;;;var cmd = spawn('mdb-export', [this.file, table])
;;;;cmd.stdout.pipe(
;;;;;;;;concat(function(err, out) {
;;;;;;;;;;;;if (err) return cb(err)
;;;;;;;;;;;;if (!out) return cb('no output')
;;;;;;;;;;;;cb(false, out.toString())
;;;;;;;;})
;;;;)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment