Use tojocky/node-printer in Electron app


I am trying to use tojocky/node-printer library in meteorJS app. I did following to install
npm install --save node-printer --runtime=electron --target=1.4.15 --target_arch=x64
But when I try to use it, It doesnt seem to be working.

Following is my code snippet

var printer = require('node-printer');
app.on('ready', function() {

I get following error

TypeError: printer.getPrinters is not a function

What am I missing here? I am new to Electron so any help would be appreciated.


Sorry I meant to say that I am trying to use this library in Electron app and not MeteorJS app.