UNPKG
txho
Version:
latest (3.1.0)
3.1.0
3.0.5
3.0.3
3.0.2
3.0.1
3.0.0
2.0.2
2.0.1
2.0.0
1.0.1
Get a Bitcoin transaction as JSON for CLI and node
github.com/bicomedia/txho
bicomedia/txho
txho
/
src
/
index.ts
12 lines
(11 loc)
•
219 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
*
as
txid
from
'./fromTxid'
import
*
as
rawtx
from
'./fromRawtx'
export
default
{
from
: { txid, rawtx, }, }
if
(
require
&&
require
.
main
===
module
) {
console
.
error
(
'Please use "cli" instead of "index"'
) }