dollcode

Crates.iodollcode
lib.rsdollcode
version0.1.1
created_at2025-10-09 17:05:09.916449+00
updated_at2025-10-09 21:50:01.409738+00
descriptiontiny implementation of noe.sh/dollcode
homepage
repositoryhttps://codeberg.org/ember-ana/dollcode.rs
max_upload_size
id1875933
size4,237
ember ana (ember-ana)

documentation

README

dollcode

tiny dollcode implementation

example

use dollcode;

let encoded = dollcode::encode(0x464383c);
assert_eq!(encoded, String::from("▖▖▘▌▌▖▘▖▌▖▖▖▘▘▖▘▖"));

// decoding can fail if the input isn't well-formatted, so it returns an Option
let decoded = dollcode::decode(&encoded);
assert_eq!(decoded, Some(0x464383c));
assert_eq!(dollcode::decode("invalid"), None);
Commit count: 0

cargo fmt