Build a proxy-state from plain objects
$ npm install @geut/buffer-json-codec
import { BufferJSONCodec } from '@geut/buffer-json-codec'
const codec = new BufferJSONCodec()
const buf = codec.encode({
val: 'str',
num: 0,
buf: Buffer.from('str')
})
codec.decode(buf) // { val: 'str', num: 0, buf: <Buffer 73 74 72> }
🐛 If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.
👥 Ideas and contributions to the project are welcome. You must follow this guideline.
MIT © A GEUT project