Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takase1121/a85-native
Node.js binding for larskholte/a85
https://github.com/takase1121/a85-native
Last synced: 4 days ago
JSON representation
Node.js binding for larskholte/a85
- Host: GitHub
- URL: https://github.com/takase1121/a85-native
- Owner: takase1121
- License: isc
- Created: 2020-01-24T00:40:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T00:58:41.000Z (2 months ago)
- Last Synced: 2024-12-26T15:06:46.424Z (about 1 month ago)
- Language: C++
- Size: 674 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# a85-native
Node.js binding for [larskholte/a85](https://github.com/larskholte/a85).> From Wikipedia:
Ascii85, also called Base85, is a form of binary-to-text encoding developed by Paul E. Rutter for the btoa utility. By using five ASCII characters to represent four bytes of binary data (making the encoded size 1⁄4 larger than the original, assuming eight bits per ASCII character), it is more efficient than uuencode or Base64, which use four characters to represent three bytes of data (1⁄3 increase, assuming eight bits per ASCII character). [source](https://en.wikipedia.org/wiki/Ascii85)## Documentation
> `a85.stringify(input: Buffer): string`
>
> - Encode a `Buffer` in ascii85> `a85.parse(input: string): Buffer`
>
> - Decode an ascii85 string into a Buffer
>
> **Note: This method will not detect invalid ascii85 string!**