From bd4e0404cc39c7f375f6155d715f6c3dd6d0db54 Mon Sep 17 00:00:00 2001 From: Jan Beckmann Date: Tue, 21 Nov 2017 17:59:18 +0100 Subject: [PATCH] return version from package.json on CLI, fixes #415 and bitpay/bitcore#1368 --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index c4bd277d6..00493beeb 100644 --- a/index.js +++ b/index.js @@ -23,4 +23,6 @@ module.exports.cli.daemon = require('./lib/cli/daemon'); module.exports.cli.bitcore = require('./lib/cli/bitcore'); module.exports.cli.bitcored = require('./lib/cli/bitcored'); +module.exports.version = require('./package.json').version; + module.exports.lib = require('bitcore-lib');