New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

drone-node

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drone-node

Node client for the Drone API

latest
Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
895
-34.43%
Maintainers
4
Weekly downloads
 
Created
Source

drone-node

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com npm version

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 (c) 2020 Drone.io Developers

FAQs

Package last updated on 10 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts