MIDI.js/soundfont-generator/inc/gen-base64.js

5 lines
168 B
JavaScript
Raw Normal View History

var fs = require('fs');
var file = process.argv[2];
fs.readFile(file, 'binary', function(err, data) {
2012-07-02 01:52:27 +02:00
console.log(new Buffer(data, 'binary').toString('base64'));
});