bs58ify 0.0.0 → 0.1.0
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/.husky/pre-commit +3 -0
- package/.lintstagedrc.js +5 -0
- package/README.md +40 -0
- package/dist/cli.js +3082 -0
- package/docs/superpowers/plans/2026-06-22-bs58ify-success-messages.md +74 -0
- package/docs/superpowers/specs/2026-06-22-bs58ify-cli-design.md +37 -0
- package/docs/superpowers/specs/2026-06-22-bs58ify-success-messages-design.md +16 -0
- package/oxfmt.config.ts +11 -0
- package/oxlint.config.ts +12 -0
- package/package.json +40 -9
- package/rolldown.config.ts +11 -0
- package/src/cli.ts +46 -0
- package/src/conversion.ts +18 -0
- package/tests/cli.test.ts +64 -0
- package/tests/conversion.test.ts +15 -0
- package/tsconfig.json +28 -0
- package/index.js +0 -1
package/.lintstagedrc.js
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# bs58ify
|
|
2
|
+
|
|
3
|
+
A command-line utility for converting between Base58 strings and JSON byte arrays.
|
|
4
|
+
|
|
5
|
+
## Use the installed binary
|
|
6
|
+
|
|
7
|
+
Install the published package globally:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add -g bs58ify
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The package exposes the `bs58ify` binary. Run it with no arguments, or pass `--help`,
|
|
14
|
+
to view the available subcommands:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
bs58ify
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
You can also invoke it without a global installation:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
bunx bs58ify
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
Encode a JSON byte array as Base58:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
bs58ify encode '[174,143,195,32,60,129,71,57,57,70,236,218,24,191,188,247,22,72,219,221,150,251,146,87,152,248,120,118,17,160,156,81,219,105,209,118,42,146,222,75,53,28,45,84,36,183,165,110,127,190,6,250,172,217,97,213,2,90,103,129,47,1,178,175]' base58.txt
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Decode Base58 as a JSON byte array:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
bs58ify decode 4VRWeP2rwPtCTVQg1LLYfwwxSbVW98wAmDK9HJXtmJZiA5FkXAKg6fgqSLMUzFSActLCfFJLXqt5RKUgbFF2d8Hc uint8array.json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Both commands require an output filepath and write the converted value to that file.
|