2020-07-12 15:14:39 +00:00
|
|
|
#include <napi.h>
|
|
|
|
#include "blur.h"
|
|
|
|
#include "blurple.h"
|
|
|
|
//#include "caption.h"
|
|
|
|
//#include "caption2.h"
|
|
|
|
#include "circle.h"
|
|
|
|
#include "explode.h"
|
2020-07-14 14:53:51 +00:00
|
|
|
#include "flag.h"
|
|
|
|
#include "flip.h"
|
|
|
|
#include "flop.h"
|
|
|
|
#include "freeze.h"
|
2020-07-16 14:31:48 +00:00
|
|
|
#include "gamexplain.h"
|
|
|
|
#include "globe.h"
|
2020-07-12 15:14:39 +00:00
|
|
|
#include "invert.h"
|
2020-07-14 14:53:51 +00:00
|
|
|
#include "watermark.h"
|
2020-07-12 15:14:39 +00:00
|
|
|
|
|
|
|
Napi::Object Init(Napi::Env env, Napi::Object exports)
|
|
|
|
{
|
|
|
|
exports.Set(Napi::String::New(env, "blur"), Napi::Function::New(env, Blur));
|
|
|
|
exports.Set(Napi::String::New(env, "blurple"), Napi::Function::New(env, Blurple));
|
|
|
|
//exports.Set(Napi::String::New(env, "caption"), Napi::Function::New(env, Caption));
|
|
|
|
//exports.Set(Napi::String::New(env, "captionTwo"), Napi::Function::New(env, CaptionTwo));
|
|
|
|
exports.Set(Napi::String::New(env, "circle"), Napi::Function::New(env, Circle));
|
|
|
|
exports.Set(Napi::String::New(env, "explode"), Napi::Function::New(env, Explode));
|
2020-07-14 14:53:51 +00:00
|
|
|
exports.Set(Napi::String::New(env, "flag"), Napi::Function::New(env, Flag));
|
|
|
|
exports.Set(Napi::String::New(env, "flip"), Napi::Function::New(env, Flip));
|
|
|
|
exports.Set(Napi::String::New(env, "flop"), Napi::Function::New(env, Flop));
|
|
|
|
exports.Set(Napi::String::New(env, "freeze"), Napi::Function::New(env, Freeze));
|
2020-07-16 14:31:48 +00:00
|
|
|
exports.Set(Napi::String::New(env, "gamexplain"), Napi::Function::New(env, Gamexplain));
|
|
|
|
exports.Set(Napi::String::New(env, "globe"), Napi::Function::New(env, Globe));
|
2020-07-12 15:14:39 +00:00
|
|
|
exports.Set(Napi::String::New(env, "invert"), Napi::Function::New(env, Invert));
|
2020-07-14 14:53:51 +00:00
|
|
|
exports.Set(Napi::String::New(env, "watermark"), Napi::Function::New(env, Watermark));
|
2020-07-12 15:14:39 +00:00
|
|
|
return exports;
|
|
|
|
}
|
|
|
|
|
|
|
|
NODE_API_MODULE(addon, Init);
|