Sejong Buffer is a buffer that receives ASCII bytes from standard English keyboard and sends out UTF-32 Hangul string. This buffer allows deletion by Jamo.
This rust library can be compiled as a WASM library or as part of another rust program.
```js import('sejong').then(buffer => { buffer.put('d'); buffer.put('k'); buffer.put('s'); buffer.put('s'); buffer.put('u'); buffer.put('d');
assert(buffer.to_string() === '안녕');
buffer.put('s');
assert(buffer.to_string() === '안녕ㄴ');
buffer.pop();
assert(buffer.out() === '안녕');
assert(buffer.out() === '');
}); ```
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
wasm-pack build -- --features wasm
No additional step. Just use as regular rust library.