0.2.0 • Published 8 years ago

jira-got v0.2.0

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

jira-got

Travis Code Climate Codecov NPM Version NPM Downloads

Convenience wrapper for got to interact with the Jira API

Install

$ npm install --save jira-got

Usage

import jira from 'jira-got';

jira('user?username=angus', { token: 'foo' }).then(res => {
  console.log(res.body.name);
  //=> 'angus'
});

API

Same as got (including the stream API and aliases), but with some additional options:

  • token

    	Base64 encoded Jira username and password (`echo -n username:password | base64`).
    
    	Can be set globally with the `JIRA_USERNAME` and `JIRA_PASSWORD` environment variables.
  • endpoint

    	Default: `https://jira.atlassian.com/rest/api/latest/`
    
    	Can be set globally with the `JIRA_ENDPOINT` environment variable.

License

The MIT License (MIT)

Copyright (c) 2016 Angus Fretwell

0.2.0

8 years ago

0.1.0

8 years ago