Skip to content

Commit

Permalink
pkg: add currency and other info (bcoin-org#623)
Browse files Browse the repository at this point in the history
matches expected outputs from hsd
  • Loading branch information
bucko13 authored Nov 1, 2018
1 parent 78eeae6 commit e305d90
Showing 1 changed file with 62 additions and 3 deletions.
65 changes: 62 additions & 3 deletions lib/pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,75 @@

'use strict';

const pkg = exports;

/**
* Current version string.
* 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
*/

exports.version = 'v1.0.2';
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.
* @const {String}
*/

exports.url = 'https://github.com/bcoin-org/bcoin';
pkg.version = require('../package.json').version;

0 comments on commit e305d90

Please sign in to comment.