Skip to content

Commit

Permalink
feat: Update README for bun support, modify .gitignore, and bump vers…
Browse files Browse the repository at this point in the history
…ion to 1.38.0
  • Loading branch information
yerofey committed Feb 12, 2025
1 parent e80d1e3 commit 8d66d79
Show file tree
Hide file tree
Showing 7 changed files with 3,219 additions and 13,970 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.vscode
.env
bun.lock
cw-output.csv
node_modules/
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@
## Install

```bash
# via NPM
# via npm
$ npm i -g @yerofey/cryptowallet-cli

# via PNPM
# via pnpm
$ pnpm add -g @yerofey/cryptowallet-cli

# via Yarn
# via yarn
$ yarn global add @yerofey/cryptowallet-cli

# via bun
$ bun add -g @yerofey/cryptowallet-cli
```

## Usage
Expand Down
12 changes: 11 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env node
'use strict';

// filter out unwanted "bigint" warning messages
const originalStderrWrite = process.stderr.write;
process.stderr.write = function (chunk, encoding, callback) {
const msg = chunk.toString();
if (msg.includes('bigint: Failed to load bindings')) return;
originalStderrWrite.apply(process.stderr, arguments);
};

import os from 'node:os';
import {
Worker,
Expand Down Expand Up @@ -84,7 +92,9 @@ if (isMainThread) {
);
} else {
console.log(
chalk.green(`⚡ Using ${numThreads}/${allMachineThreads} threads to generate a wallet...`)
chalk.green(
`⚡ Using ${numThreads}/${allMachineThreads} threads to generate a wallet...`
)
);
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yerofey/cryptowallet-cli",
"version": "1.37.3",
"version": "1.38.0",
"description": "Crypto wallet generator CLI tool",
"type": "module",
"homepage": "https://github.com/yerofey/cryptowallet-cli",
Expand Down Expand Up @@ -50,7 +50,6 @@
"scripts": {
"dev:npm": "npm i --package-lock-only",
"dev:pnpm": "pnpm install --lockfile-only",
"dev:yarn": "yarn install --mode=skip-build --no-node-modules",
"lint": "pnpm exec eslint src/*.js",
"test": "ava"
},
Expand Down
6,873 changes: 3,198 additions & 3,675 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading

0 comments on commit 8d66d79

Please sign in to comment.