drone-node
v2.2.0
Published
Node client for the Drone API
Downloads
5,801
Readme
drone-node
Node client for the Drone API
Example
const drone = require('drone-node')
const client = new drone.Client({
url: 'https://drone.example.com',
token: 'SoMeToKeN'
})
client.getRepos().then((res) => {
console.log(res)
}).catch((reason) => {
console.error(reason)
})
Many functions are available, please read the source and jsdoc comments at lib/index.js.
Contributing
Fork -> Patch -> Lint -> Test -> Push -> Pull Request
Tests
Tests are dependent on a running drone server. You can run them with the following command:
DRONE_SERVER=your_server DRONE_TOKEN=your_token yarn run test
Authors
License
Apache-2.0
Copyright
Copyright (c) 2020 Drone.io Developers