First attempt of encoding and decoding ASCII art from an image file to console using binary strings and hexadecimal conversion
import PPAN from "./lib/ppan.ts";
const binary = "0001100000111100011111101101101111111111001001000101101010100101";
const ppan = new PPAN();
ppan.encode(binary, "./img/test.ppan");
ppan.decode("./img/test.ppan"); // alien
// Version 0.1.1
// run using: deno run --allow-read --allow-write main.ts
/* Output:
░░░░░░████░░░░░░
░░░░████████░░░░
░░████████████░░
████░░████░░████
████████████████
░░░░██░░░░██░░░░
░░██░░████░░██░░
██░░██░░░░██░░██
*/