Expose runtime format availability

Aids addition of new format/method combos

Dogfood this in the test code
This commit is contained in:
Lovell Fuller
2015-02-26 19:41:33 +00:00
parent 1565522ecc
commit c7ccf6801d
7 changed files with 174 additions and 43 deletions

View File

@@ -23,6 +23,7 @@ extern "C" void init(v8::Handle<v8::Object> target) {
NODE_SET_METHOD(target, "concurrency", concurrency);
NODE_SET_METHOD(target, "counters", counters);
NODE_SET_METHOD(target, "libvipsVersion", libvipsVersion);
NODE_SET_METHOD(target, "format", format);
}
NODE_MODULE(sharp, init)