jira-got
v0.2.0
Published
Convenience wrapper for `got` to interact with the Jira API
Readme
jira-got
Convenience wrapper for got to interact with the Jira API
Install
$ npm install --save jira-gotUsage
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:
tokenBase64 encoded Jira username and password (
echo -n username:password | base64).Can be set globally with the
JIRA_USERNAMEandJIRA_PASSWORDenvironment variables.endpointDefault:
https://jira.atlassian.com/rest/api/latest/Can be set globally with the
JIRA_ENDPOINTenvironment variable.
License
The MIT License (MIT)
Copyright (c) 2016 Angus Fretwell
