Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare

CloudFlare API client

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

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);
  });
});

Keywords

FAQs

Package last updated on 17 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc