You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
286 B
JavaScript
15 lines
286 B
JavaScript
6 years ago
|
var common = {};
|
||
|
|
||
|
common.lnd_server_url = 'https://localhost:8080/v1';
|
||
|
common.lnd_dir = '';
|
||
|
|
||
|
common.convertToBTC = (num) => {
|
||
|
return (num / 100000000).toFixed(6);
|
||
|
};
|
||
|
|
||
|
common.convertTimestampToDate = (num) => {
|
||
|
return new Date(+num*1000).toLocaleString();
|
||
|
};
|
||
|
|
||
|
module.exports = common;
|