lib/domains.js
function getDomain(domain, callback) {
    getAll(function onGetAll(err, domains) {
      if (err) {
        return callback(err);
      }

      callback(null, domains.results.filter(function onGetDomain(domain_obj) {
        return domain_obj.domain == domain;
      })[0]);
    });
  }
function getDomain(domain, callback) {
    getAll(function onGetAll(err, domains) {
      if (err) {
        return callback(err);
      }

      callback(null, domains.results.filter(function onGetDomain(domain_obj) {
        return domain_obj.domain == domain;
      })[0]);
    });
  }
function getDomain ( domain , callback ) { getAll ( function onGetAll ( err , domains ) { if ( err ) { return callback ( err ) ; } callback ( null , domains . results . filter ( function onGetDomain ( domain_obj ) { return domain_obj . domain == domain ; } ) [ 0 ] ) ; } ) ; }
Get a domain by it's name.
Get a domain by it s name .