@yerofey/cryptowallet-cli 1.37.3 → 1.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/cli.js +13 -1
- package/package.json +2 -2
- package/src/Method.js +2 -2
package/README.md
CHANGED
|
@@ -28,14 +28,17 @@
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
# via
|
|
31
|
+
# via npm
|
|
32
32
|
$ npm i -g @yerofey/cryptowallet-cli
|
|
33
33
|
|
|
34
|
-
# via
|
|
34
|
+
# via pnpm
|
|
35
35
|
$ pnpm add -g @yerofey/cryptowallet-cli
|
|
36
36
|
|
|
37
|
-
# via
|
|
37
|
+
# via yarn
|
|
38
38
|
$ yarn global add @yerofey/cryptowallet-cli
|
|
39
|
+
|
|
40
|
+
# via bun
|
|
41
|
+
$ bun add -g @yerofey/cryptowallet-cli
|
|
39
42
|
```
|
|
40
43
|
|
|
41
44
|
## Usage
|
package/cli.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
// filter out unwanted "bigint" warning messages
|
|
5
|
+
const originalStderrWrite = process.stderr.write;
|
|
6
|
+
process.stderr.write = function (chunk, encoding, callback) {
|
|
7
|
+
const msg = chunk.toString();
|
|
8
|
+
if (msg.includes('bigint: Failed to load bindings')) return;
|
|
9
|
+
originalStderrWrite.apply(process.stderr, arguments);
|
|
10
|
+
};
|
|
11
|
+
|
|
4
12
|
import os from 'node:os';
|
|
5
13
|
import {
|
|
6
14
|
Worker,
|
|
@@ -73,6 +81,8 @@ if (inputThreads > availableThreads) {
|
|
|
73
81
|
numThreads = defaultThreads;
|
|
74
82
|
} else if (inputThreads <= 0) {
|
|
75
83
|
numThreads = availableThreads;
|
|
84
|
+
} else {
|
|
85
|
+
numThreads = inputThreads;
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
if (isMainThread) {
|
|
@@ -84,7 +94,9 @@ if (isMainThread) {
|
|
|
84
94
|
);
|
|
85
95
|
} else {
|
|
86
96
|
console.log(
|
|
87
|
-
chalk.green(
|
|
97
|
+
chalk.green(
|
|
98
|
+
`⚡ Using ${numThreads}/${allMachineThreads} threads to generate a wallet...`
|
|
99
|
+
)
|
|
88
100
|
);
|
|
89
101
|
}
|
|
90
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yerofey/cryptowallet-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.1",
|
|
4
4
|
"description": "Crypto wallet generator CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/yerofey/cryptowallet-cli",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev:npm": "npm i --package-lock-only",
|
|
52
52
|
"dev:pnpm": "pnpm install --lockfile-only",
|
|
53
|
-
"dev:yarn": "yarn install --mode=skip-build --no-node-modules",
|
|
54
53
|
"lint": "pnpm exec eslint src/*.js",
|
|
55
54
|
"test": "ava"
|
|
56
55
|
},
|
|
@@ -118,6 +117,7 @@
|
|
|
118
117
|
"@ton/ton": "^15.1.0",
|
|
119
118
|
"@yerofey/dogecoin-bip84": "^0.0.5",
|
|
120
119
|
"@yerofey/litecoin-bip84": "^0.0.5",
|
|
120
|
+
"bigint-buffer": "^1.1.5",
|
|
121
121
|
"bip39": "3.1.0",
|
|
122
122
|
"bip84": "^0.2.9",
|
|
123
123
|
"bip86": "^0.0.4",
|
package/src/Method.js
CHANGED
|
@@ -98,7 +98,7 @@ class Method {
|
|
|
98
98
|
log();
|
|
99
99
|
log(
|
|
100
100
|
greenBright(
|
|
101
|
-
'⬇️
|
|
101
|
+
'⬇️ You can import it into your favorite wallet app or use it to generate a wallet with "-m" flag'
|
|
102
102
|
)
|
|
103
103
|
);
|
|
104
104
|
|
|
@@ -577,7 +577,7 @@ class Method {
|
|
|
577
577
|
appsString +=
|
|
578
578
|
' and any other wallet app (either using mnemonic or private key)';
|
|
579
579
|
}
|
|
580
|
-
log(greenBright('⬇️
|
|
580
|
+
log(greenBright('⬇️ You can import this wallet into ' + appsString));
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
// donation
|