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

codeship-node-v2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeship-node-v2

Codeship API v2 for Node

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

codeship-node-v2

A newer version of codeship-node for use with version 2 of the Codeship API

Usage

import Codeship from 'codeship-node-v2'

const codeship = new Codeship({
  orgUuid: 'organisation-uuid',
  orgName: 'organisation-name',
  username: 'jane@example.com',
  password: 'codeshipPassword'
});

Only one of the organisation details is required, the UUID will be found if you supply the name.

Like the original codeship-node module, each method is nested under its resource name, this time it's implemented with native promises:

codeship.projects.list()
  .then((projects) => console.log('Projects!', projects))
  .catch((error) => console.error('Error!', error))

You could also use it in an async function using await:

try {
  const project = await codeship.projects.list()
  console.log('Projects!', projects)
} catch (error) {
  console.error('Error!', error)
}

The whole API is not yet implemented. The current list of functionality is:

builds.list(projectUuid)
builds.get(buildUuid, projectUuid)
builds.restart(buildUuid, projectUuid)
projects.get(projectUuid)
projects.list()

TODO:

  • Write tests
  • Provide more coverage of the API

FAQs

Package last updated on 08 May 2019

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