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.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bun
2
+
3
+ bunx lint-staged --allow-empty
@@ -0,0 +1,5 @@
1
+ /** @type {import("lint-staged").Configuration} */
2
+ export default {
3
+ "*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}": ["bun run lint:fix", "bun run fmt:fix"],
4
+ "*.md": "bun run fmt:fix",
5
+ };
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.