New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-semaphoreci

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-semaphoreci

A Javascript wrapper for the Semaphore CI API

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

node-semaphoreci

Build Status

Simple Javascript wrapper for Semaphore CI's API

Installation

$ npm install node-semaphoreci --save

Examples

ES6:

import SemaphoreCI from 'node-semaphoreci'

const api = new SemaphoreCI({
  api_url: 'http://semaphoreci.com/api/v1',
  project_hash: 'some_hash',
  auth_token: 'some_token'
})

api.getBranches().then(response => {
  const branches = response.data;
  
  // ...
}).catch(err => {
  console.log(err);
});

ES5:

var SemaphoreCI = require('node-semaphoreci').default;

var api = new SemaphoreCI({
  api_url: 'http://semaphoreci.com/api/v1',
  project_hash: 'some_hash',
  auth_token: 'some_token'
})

api.getBranches().then(function (response) {
  var branches = response.data;

  // ...
}).catch(function (err) {
  console.log(err);
});

Testing

$ npm install
$ npm test

Keywords

semaphoreci

FAQs

Package last updated on 02 Jul 2016

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