https://github.com/drone/drone-node
Node client for the Drone API
https://github.com/drone/drone-node
Last synced: 5 months ago
JSON representation
Node client for the Drone API
- Host: GitHub
- URL: https://github.com/drone/drone-node
- Owner: drone
- License: apache-2.0
- Created: 2015-11-03T01:18:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T16:31:04.000Z (over 2 years ago)
- Last Synced: 2025-10-21T07:43:52.435Z (9 months ago)
- Language: JavaScript
- Size: 263 KB
- Stars: 64
- Watchers: 5
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-node
[](http://cloud.drone.io/drone/drone-node)
[](https://gitter.im/drone/drone)
[](https://discourse.drone.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](https://badge.fury.io/js/drone-node)
Node client for the Drone API
## Example
```js
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](./lib/index.js).
## Contributing
Fork -> Patch -> Lint -> Test -> Push -> Pull Request
### Integration Tests
These 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 integration
```
### Unit Tests
These will be run automatically with your PR. Ensure they pass before creating a PR.
```
yarn run test
```
## Authors
* [Thomas Boerger](https://github.com/tboerger)
* [Other contributors](https://github.com/drone/drone-node/graphs/contributors)
## License
Apache-2.0
## Copyright
```
Copyright (c) 2020 Drone.io Developers
```