dkron-js-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

dkron-js-client

Build Status codecov

DKron REST API client for JavaScript

Usage

Node

Install with yarn add dkron-js-client or npm install --save dkron-js-client

const { createDkronClient } = require('dkron-js-client');

const config = { url: 'http://localhost:8080', version: 'v1' };
const dkronClient = createDkronClient(config);

dkronClient
  .createJob({ name: 'my-job', schedule: '* * * * *' })
  .then(createdJob => {
    // play with created job
  });

Release

The publishing is automated using Travis. However it is triggered on building a tag. Therefore you need to create a tag to be able to publish a new version in the npm registry.

To create a tag, run the following command

npm version -m 'release: v%s' patch|minor|major

Push all of our changes to Github:

git push origin master

This will start a build on Travis CI, but it will not publish.

To publish the package we have to push the git tag:

git push --tags

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i dkron-js-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

238 kB

Total Files

96

Last publish

Collaborators

  • leadformance