fcoin/lib/bcoin.js
2017-06-15 22:28:06 -07:00

39 lines
791 B
JavaScript

/*!
* bcoin.js - a javascript bitcoin library.
* Copyright (c) 2014-2015, Fedor Indutny (MIT License).
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License).
* https://github.com/indutny/bcoin
*/
'use strict';
/**
* Exposes the global environment.
* An instance of {@link Environment}.
* @module bcoin
* @see {Environment}
* @license
* Copyright (c) 2014-2015, Fedor Indutny (MIT License).
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License).
* https://github.com/indutny/bcoin
*/
var env = require('./env');
var util = require('./utils/util');
var global = util.global;
/*
* Expose bcoin globally in the browser.
*/
if (typeof window !== 'undefined'
|| typeof self !== 'undefined') {
global.bcoin = env;
}
/*
* Expose
*/
module.exports = env;