This module exports a constructor function which takes two arguments:
var Freenom = require('freenom');var freenom = new Freenom([email][, password]);
The email and password arguments are optional. If you provide them, you can
avoid to specify the authentication parameters when you call the methods that
require authentication.
Every resource is accessed via your freenom instance:
var freenom = new Freenom();// freenom.<resouce_name>.<method_name>
The last argument of every resource method is an error-first callback:
var freenom = new Freenom();freenom.service.ping(function (err, res) { if (err) throw err; console.log(res);});