Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuid/base64
Cross-platform base64 {en,de}coding
https://github.com/nuid/base64
base64 base64-decoding base64-encoding clj cljc cljs clojure clojurescript
Last synced: 24 days ago
JSON representation
Cross-platform base64 {en,de}coding
- Host: GitHub
- URL: https://github.com/nuid/base64
- Owner: NuID
- License: apache-2.0
- Created: 2019-04-07T17:03:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T13:31:59.000Z (about 1 year ago)
- Last Synced: 2024-09-29T21:02:07.267Z (about 1 month ago)
- Topics: base64, base64-decoding, base64-encoding, clj, cljc, cljs, clojure, clojurescript
- Language: Clojure
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
# nuid.base64
Cross-platform base64 {en,de}coding.
## Requirements
[`jvm`](https://www.java.com/en/download/), [`node + npm`](https://nodejs.org/en/download/), [`clj`](https://clojure.org/guides/getting_started), [`shadow-cljs`](https://shadow-cljs.github.io/docs/UsersGuide.html#_installation)
## Clojure and ClojureScript
### tools.deps:
`{nuid/base64 {:git/url "https://github.com/nuid/base64" :sha "..."}}`
### usage:
```
$ clj # or shadow-cljs node-repl
=> (require '[nuid.base64 :as base64])
=> (def b64 (base64/encode "π΄")) ;; defaults to reading input as utf8
=> b64 ;; => "8J+QtA=="
=> (base64/decode b64) ;; => buffer-like: [-16 -97 -112 -76] (endianness may vary)
=> (base64/str b64) ;; => "π΄"
=> (base64/str b64 :charset/utf16le) ;; => "ιΏ°λ"
```## Licensing
Apache v2.0 or MIT