pkg: add currency and other info (#623)
matches expected outputs from hsd
This commit is contained in:
parent
78eeae6763
commit
e305d900d6
75
lib/pkg.js
75
lib/pkg.js
@ -6,16 +6,75 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const pkg = exports;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Package Name
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.name = require('../package.json').name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Project Name
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.core = 'bcoin';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Organization Name
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.organization = 'bcoin-org';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currency Name
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.currency = 'bitcoin';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currency Unit
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.unit = 'btc';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base Unit
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.base = 'satoshi';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Config file name.
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.cfg = `${pkg.core}.conf`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Repository URL.
|
||||||
|
* @const {String}
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
|
||||||
|
pkg.url = `https://github.com/${pkg.organization}/${pkg.name}`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current version string.
|
* Current version string.
|
||||||
* @const {String}
|
* @const {String}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exports.version = 'v1.0.2';
|
pkg.version = require('../package.json').version;
|
||||||
|
|
||||||
/**
|
|
||||||
* Repository URL.
|
|
||||||
* @const {String}
|
|
||||||
*/
|
|
||||||
|
|
||||||
exports.url = 'https://github.com/bcoin-org/bcoin';
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user