UNPKG

txho

Version:

Get a Bitcoin transaction as JSON for CLI and node

60 lines (59 loc) 1.75 kB
{ "name": "txho", "version": "3.1.0", "description": "Get a Bitcoin transaction as JSON for CLI and node", "main": "dist/index.js", "bin": { "txho": "./dist/cli.js" }, "author": "MWulff", "license": "Open-BSV", "repository": { "type": "git", "url": "https://github.com/bicomedia/txho.git" }, "scripts": { "go": "ts-node src/index.ts", "test": "yarn build && npm uninstall -g txho && npm install -g ./ && txho -v", "build": "tsc src/index.ts src/cli.ts --outDir dist/ --allowJs", "version": "rexreplace _VERSION_ \"r('package.json').version\" -j dist/*.*", "prepublishOnly": "yarn is-git-clean && git rebase origin && yarn test && yarn bump", "postpublish": "git push --tag && git push && (open https://github.com/bico-media/txho/releases || 1)", "test-format": "yarn prettier --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)", "fmt": "yarn prettier --write", "prettier": "prettier '{.,{src,test}/**}/*.{js,ts,json}'", "bump": "yarn is-git-clean && bump --tag 'v%s' --all", "is-git-clean": "(git diff --quiet --exit-code --cached && git diff --quiet --exit-code) || (echo Please commit or stash changes && exit 1)" }, "dependencies": { "base-64": "1.0.0", "bitcoind-rpc": "0.8.1", "bsv": "1.5.4", "dotenv": "8.2.0", "js-sha256": "^0.9.0", "json5": "2.1.3" }, "devDependencies": { "@types/node": "14.14.6", "ts-node": "9.0.0", "typescript": "4.0.5", "version-bump-prompt": "6.1.0" }, "keywords": [ "txo", "txid", "bitfs", "bitwork", "BSV", "bitcoin sv", "bitcoin" ], "prettier": { "useTabs": true, "printWidth": 100, "singleQuote": true, "bracketSpacing": false, "trailingComma": "es5", "semi": false } }