https://github.com/pd/zscii
zscii string encoding / decoding
https://github.com/pd/zscii
Last synced: about 1 year ago
JSON representation
zscii string encoding / decoding
- Host: GitHub
- URL: https://github.com/pd/zscii
- Owner: pd
- Created: 2013-04-17T23:32:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-25T13:11:28.000Z (about 13 years ago)
- Last Synced: 2025-05-16T19:18:28.840Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zscii
[](https://travis-ci.org/pd/zscii)
ZSCII-encoded string utilities.
Say it with me: "xyzzy".
See [the spec](http://www.gnelson.demon.co.uk/zspec/sect03.html).
## Installation
~~~~ console
$ npm install zscii
~~~~
## API
Something like:
~~~~ js
var zscii = require('zscii');
var coder = new zscii.coder(zscii.alphabetForVersion(3), abbrevs);
coder.decode([0x10af, 0x3ead]) //=> "mailbox"
zstr = coder.encode("mailbox") //=> zstring([0x10af, 0x3ead])
zstr.zchars() //=> [24, 6, ...]
~~~~
## License
MIT