-
-
Save KarbonDallas/3408693 to your computer and use it in GitHub Desktop.
official semicolon style of @maxogden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function 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