Skip to content
/ bytes Public

Cross-platform byte (de)serialization and conversion

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md
Notifications You must be signed in to change notification settings

NuID/bytes

Repository files navigation

nuid.bytes

Cross-platform byte (de)serialization and conversion.

Requirements

jvm, node + npm, clj, shadow-cljs

Clojure and ClojureScript

tools.deps:

{nuid/bytes {:git/url "https://github.com/nuid/bytes" :sha "..."}}

usage:

$ clj # or shadow-cljs node-repl
=> (require '[nuid.bytes :as bytes])
=> (def b (bytes/from "🐴"))                   ;; defaults to utf8
=> (bytes/str b)                               ;; => "🐴"
=> (bytes/str b :charset/utf16le)              ;; => "鿰뒐"
=> (def b2 (bytes/from "🐴" :charset/utf16le))
=> (bytes/str b2 :charset/utf16le)             ;; => "🐴"

Licensing

Apache v2.0 or MIT

About

Cross-platform byte (de)serialization and conversion

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published