JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q61719F
  • License MIT

Complete cgminer API implementation for Node.js with multi-version support, response validation, and integration tests

Package Exports

  • cgminer-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cgminer-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cgminer-api

Complete cgminer API implementation for Node.js with multi-version support, response validation, and integration tests.

NPM version Build status Dependency Status

Install

$ npm install cgminer-api --save

Usage

var Client = require('cgminer-api').client;
var cgminer = new Client({
  host: '192.168.1.99',
  port: 4028
});
cgminer.connect()
  .then(function () {
    return cgminer.version();
  })
  .then(function (version) {
    console.log(version);
  })
  .catch(function (error) {
    console.log(error);
  });

License

MIT