Skip to content

About

Node.js API client for the CloudFlare Client Interface API - http://www.cloudflare.com/docs/client-api.html

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

CloudFlare Node.js client

Note: This CloudFlare client is not yet production ready. It is still in the very early stages of development

Using the client

var cloudflare = require('cloudflare').createClient({
    email: 'you@email.com',
    token: 'somethingFromCloudFlare'
});

List all available domains

cloudflare.listDomains(function (err, domains) {
  if (err) throw err;
  domains.forEach(function (domain) {
    var plan   = domain.props.plan,
        status = domain.zone_status_class.replace('status-', '');

    console.log("Domain: %s, plan: %s, status: %s", domain.display_name, plan, status);
  });
});

About

Node.js API client for the CloudFlare Client Interface API - http://www.cloudflare.com/docs/client-api.html

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors