Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "bip32", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "A BIP32 compatible library", | ||
@@ -11,3 +11,4 @@ "keywords": [ | ||
], | ||
"main": "index.js", | ||
"main": "./src/index.js", | ||
"types": "./types/index.d.ts", | ||
"engines": { | ||
@@ -17,7 +18,14 @@ "node": ">=6.0.0" | ||
"scripts": { | ||
"coverage-report": "nyc report --reporter=lcov", | ||
"coverage": "nyc --check-coverage --branches 90 --functions 90 npm run unit", | ||
"standard": "standard", | ||
"test": "npm run standard && npm run coverage", | ||
"unit": "tape test/*.js" | ||
"build": "tsc -p ./tsconfig.json", | ||
"coverage-report": "npm run build && npm run nobuild:coverage-report", | ||
"coverage": "npm run build && npm run nobuild:coverage", | ||
"format": "npm run prettier -- --write", | ||
"format:ci": "npm run prettier -- --check", | ||
"lint": "tslint -p tsconfig.json -c tslint.json", | ||
"nobuild:coverage-report": "nyc report --reporter=lcov", | ||
"nobuild:coverage": "nyc --check-coverage --branches 90 --functions 90 npm run nobuild:unit", | ||
"nobuild:unit": "tape test/*.js", | ||
"prettier": "prettier 'ts-src/**/*.ts' --ignore-path ./.prettierignore", | ||
"test": "npm run build && npm run format:ci && npm run lint && npm run nobuild:coverage", | ||
"unit": "npm run build && npm run nobuild:unit" | ||
}, | ||
@@ -28,3 +36,8 @@ "repository": { | ||
}, | ||
"files": [ | ||
"src", | ||
"types" | ||
], | ||
"dependencies": { | ||
"@types/node": "10.12.18", | ||
"bs58check": "^2.1.1", | ||
@@ -38,8 +51,10 @@ "create-hash": "^1.2.0", | ||
"devDependencies": { | ||
"nyc": "^11.7.1", | ||
"standard": "^11.0.1", | ||
"tape": "^4.9.0" | ||
"nyc": "^13.3.0", | ||
"prettier": "1.16.4", | ||
"tape": "^4.9.0", | ||
"tslint": "5.13.1", | ||
"typescript": "3.3.3333" | ||
}, | ||
"author": "Daniel Cousens", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -46,0 +61,0 @@ "url": "https://github.com/bitcoinjs/bip32/issues" |
@@ -6,8 +6,22 @@ # bip32 | ||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
A [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) compatible library. | ||
A [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) compatible library written in TypeScript with transpiled JavaScript committed to git. | ||
## Example | ||
TypeScript | ||
``` typescript | ||
import * as bip32 from 'bip32'; | ||
import { BIP32Interface } from 'bip32'; | ||
let node: BIP32Interface = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi'); | ||
let child: BIP32Interface = node.derivePath('m/0/0'); | ||
// ... | ||
``` | ||
NodeJS | ||
``` javascript | ||
@@ -21,2 +35,3 @@ let bip32 = require('bip32') | ||
## LICENSE [ISC](LICENSE) | ||
## LICENSE [MIT](LICENSE) | ||
A derivation (and extraction for modularity) of the `HDWallet`/`HDNode` written and tested by [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) contributors since 2014. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
36
16562
7
5
336
2
+ Added@types/node@10.12.18
+ Added@types/node@10.12.18(transitive)