diff --git a/README.md b/README.md index 534247d..61bbe88 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Custom Inspects +# Custom Inspects [![JSR](https://jsr.io/badges/@li/custom-inspects)](https://jsr.io/@li/custom-inspects) Some experiments with custom inspects for Deno/NodeJS console logging. -[![asciicast](https://raw.githubusercontent.com/lionel-rowe/custom-inspects/main/img/asciicinema-thumb-spaced.svg)](https://asciinema.org/a/XxTbS0aAtTA6BZ9tdzKardxJs) +[![asciicast](https://raw.githubusercontent.com/lionel-rowe/custom-inspects/main/img/asciinema-thumb-font-size-adjusted.svg)](https://asciinema.org/a/XxTbS0aAtTA6BZ9tdzKardxJs) ## Usage diff --git a/deno.jsonc b/deno.jsonc index a5ab40f..5bff63f 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,7 +1,7 @@ { "lock": false, "name": "@li/custom-inspects", - "version": "0.0.5", + "version": "0.0.6", "exports": { ".": "./mod.ts", "./bytes": "./bytes.ts", @@ -21,7 +21,7 @@ "indentWidth": 4, "singleQuote": true, "proseWrap": "preserve", - "exclude": [] + "exclude": ["README.md"] }, "compilerOptions": { "strict": true }, "lint": { diff --git a/img/asciicinema-thumb-spaced.svg b/img/asciicinema-thumb-spaced.svg deleted file mode 100755 index fedf8bf..0000000 --- a/img/asciicinema-thumb-spaced.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - >import{ patch, inspectBytes }from'@li/custom-inspects' - - undefined - - >patch(Uint8Array.prototype, inspectBytes) - - { [Symbol(Symbol.dispose)]:[Function: [Symbol.dispose]]} - - > console.info(awaitDeno.readFile('./img/Example.jpg')) - - Uint8Array(25303) [ - - ##x0x1x2x3x4x5x6x7x8x9xaxbxcxdxexf - - 0xff d8 ff e00010 4a 46 49 460001 01 010048......JFIF.....H - - 1x00480000ff fe0024 43 72 65 61 74 65 64 20.H.....$Created - - 2x62 79 20 43 65 6e 74 72 78 2c 20 63 72 6f 70 70by Centrx, cropp - - 3x65 64 20 62 79 20 4a 50 78 47 ff db00430006ed by JPxG...C.. - - 4x04 05 06 05 04 06 06 05 06 07 07 06 08 0a 10 0a................ - - 5x0a 09 09 0a 14 0e 0f 0c 10 17 14 18 18 17 14 16................ - - 6x16 1a 1d 25 1f 1a 1b 23 1c 16 16 20 2c 20 23 26...%...#..., #& - - ... 25191 more bytes - - ] - - undefined - - > - - - - - - - - - - - - - - - - - - - - - - diff --git a/img/asciinema-thumb-font-size-adjusted.svg b/img/asciinema-thumb-font-size-adjusted.svg new file mode 100755 index 0000000..63562a1 --- /dev/null +++ b/img/asciinema-thumb-font-size-adjusted.svg @@ -0,0 +1,313 @@ + + + + + + + + + + + +> + +import + +{ patch, inspectBytes } +from + +'@li/custom-inspects' + + + +undefined + + + +> + +patch + +(Uint8Array.prototype, inspectBytes) + + + +{ [ + +Symbol(Symbol.dispose) + +]: + +[Function: [Symbol.dispose]] + +} + + + +> console. + +info + +( + +await + +Deno. + +readFile + +( + +'./img/Example.jpg' + +)) + + + +Uint8Array(25303) [ + + + +## + +x + +0 + +x + +1 + +x + +2 + +x + +3 + +x + +4 + +x + +5 + +x + +6 + +x + +7 + +x + +8 + +x + +9 + +x + +a + +x + +b + +x + +c + +x + +d + +x + +e + +x + +f + + + +0 + +x + +ff d8 ff e0 + +00 + +10 4a 46 49 46 + +00 + +01 01 01 + +00 + +48 + +...... + +JFIF + +..... + +H + + + +1 + +x + +00 + +48 + +00 + +00 + +ff fe + +00 + +24 43 72 65 61 74 65 64 20 + +. + +H + +..... + +$Created + + + +2 + +x + +62 79 20 43 65 6e 74 72 78 2c 20 63 72 6f 70 70 + +by Centrx, cropp + + + +3 + +x + +65 64 20 62 79 20 4a 50 78 47 ff db + +00 + +43 + +00 + +06 + +ed by JPxG + +... + +C + +.. + + + +4 + +x + +04 05 06 05 04 06 06 05 06 07 07 06 08 0a 10 0a + +................ + + + +5 + +x + +0a 09 09 0a 14 0e 0f 0c 10 17 14 18 18 17 14 16 + +................ + + + +6 + +x + +16 1a 1d 25 1f 1a 1b 23 1c 16 16 20 2c 20 23 26 + +... + +% + +... + +# + +... + +, #& + + + +... 25191 more bytes + + + +] + + + +undefined + + + +> + + + + + + + + + + + + + + + + + + + + + +