-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I needed to implement a SaveAsSync due to using a jbin in a module that couldn't work well with a call back. I can add a PR to implement a SaveAsSync if any interest.
return proto.saveAsSync = promising(function(dest, mimeType, callback) {
if ("string" == typeof dest) {
var buffer = this.read("blob", 0);
is(buffer, Buffer) || (buffer = new Buffer(buffer)), require("fs").writeFileSync(dest, buffer);
} else callback(new TypeError("Unsupported storage type."));
}), jBinary;
Metadata
Metadata
Assignees
Labels
No labels