bip174

v3.0.0-rc.1
[![Build Status](https://github.com/bitcoinjs/bip174/actions/workflows/main_ci.yml/badge.svg)](https://github.com/bitcoinjs/bip174/actions/workflows/main_ci.yml) [![NPM](https://img.shields.io/npm/v/bip174.svg)](https://www.npmjs.org/package/bip174)

build

npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json && npm run formatjs

checkHybrid

chmod +x test.cjs && node test.cjs

clean

rimraf src types

coverage

c8 --check-coverage --include='src/esm/lib/**/*.js' --reporter=lcov --reporter=text --branches 90 --functions 90 --lines 90 npm run unit

flb

npm run format && npm run lint && npm run build

format

npm run prettier -- --write

formatjs

npm run prettierjs -- --write > /dev/null 2>&1

format:ci

npm run prettier -- --check && npm run prettierjs -- --check

gitdiff:ci

npm run build && git diff --exit-code

lint

tslint -p tsconfig.json -c tslint.json

postbuild

find src/cjs -type f -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.cjs"' {} \; && chmod +x fixup.cjs && node fixup.cjs

prettier

prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore

prettierjs

prettier 'src/**/*.js' --ignore-path ./.prettierignore

test

npm run format:ci && npm run lint && npm run build && npm run coverage

unit

tape src/esm/tests/*.js src/esm/tests/fromBIP/*.js
npm i bip174

Metadata

  • MIT
  • >=18.0.0
  • Jonathan Underwood
  • released 9/19/2024

Downloads