npm.io
1.0.0 • Published 10 years ago

circleci-env

Licence
MIT
Version
1.0.0
Deps
2
Vulns
1
Weekly
0

circleci-env Build Status Greenkeeper badge

Configure CircleCI with an environment variable

Install

$ npm install --save circleci-env

Usage

var env = require('circleci-env')

env.set({
  username: 'bendrucker',
  project: 'circleci-aws',
  circle_token: token,
  name: 'FOO',
  value: 'BAR'
})
.then(console.log)

// #=> {name: 'FOO', value: 'xxxxR'}

API

env.get(data) -> promise
env.set(data) -> promise
env.remove(data) -> promise

Gets, sets, or removes a new environment variable using the provided data.

data

Required
Type: object

An object that always must contain username, project, circle_token, and name (the key name), plus value when calling set.

License

MIT Ben Drucker

Keywords