UNPKG
@tendermint/belt
Version:
latest (0.3.0)
0.3.0
0.2.3
0.2.2
0.2.1
0.1.0
A utility belt for TypeScript + JavaScript
github.com/cosmos/belt
cosmos/belt
@tendermint/belt
/
index.js
9 lines
(7 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
let
node =
false
;
try
{ node = (
Object
.
prototype
.
toString
.
call
(
global
.
process
) ===
'[object process]'
); }
catch
(e) { }
module
.
exports
= node ?
require
(
'./dist/node'
) :
require
(
'./dist/web'
);