1.0.3 • Published 8 years ago

node-semaphoreci v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

Useful Links

Testing

$ npm install
$ npm test
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago