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

circleci

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circleci

A CircleCI client for Node.js

  • 0.0.0-5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-12.97%
Maintainers
1
Weekly downloads
 
Created
Source

CircleCI

Build Status Dependencies

A CircleCI client for Node.js.

Installation

To install, go to your console/terminal and run:

npm install circleci

Usage

In your project, require the package:

var circleci = require("circleci");

Then you can run one of the following methods:

getUser()

API call: GET /me

Provides information about the signed in user.

Example:
circleci.getUser(function(err, user){
  if (err) {
    console.log(err);
  } else {
    console.log(user.username); // e.g. jpstevens
  }
});

getRecentProjects()

API call: GET /projects

List of all the projects you're following on CircleCI, with build information organized by branch.

Options:
  • limit - The number of builds to return. Maximum 100, defaults to 30.
  • offset - The API returns builds starting from this offset, defaults to 0.
Example:
circleci.getProjects(function(err, projects){
  if (err) {
    console.log(err);
  } else {
    for (var i in projects) {
      console.log(projects[i].username + "/" + projects[i].reponame); // e.g. jpstevens/circleci
    }
  }
});

getRecentProjects()

API call: GET /projects

List of all the projects you're following on CircleCI, with build information organized by branch.

Example:
circleci.getProjects(function(err, projects){
  if (err) {
    console.log(err);
  } else {
    for (var i in projects) {
      console.log(projects[i].username + "/" + projects[i].reponame); // e.g. jpstevens/circleci
    }
  }
});

TODO:

Documentation:

  • Finish README

Testing:

  • Add additional tests for API methods

Include methods to wrap:

  • Adding a CircleCI key to your Github User account (POST: /user/ssh-key)
  • Adding a Heroku API key to CircleCI, takes apikey as form param name (POST: /user/heroku-key)
  • Retrying a build using SSH (POST: /project/:username/:project/:build_num/ssh)

Keywords

FAQs

Package last updated on 20 Jun 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