@geut/buffer-json-codec

0.0.2 • Public • Published

buffer-json-codec

Build a proxy-state from plain objects

Build Status JavaScript Style Guide standard-readme compliant

Made by GEUT

Install

$ npm install @geut/buffer-json-codec

Usage

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> }

Issues

🐛 If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

👥 Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT © A GEUT project

Package Sidebar

Install

npm i @geut/buffer-json-codec

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

7.28 kB

Total Files

4

Last publish

Collaborators

  • geutuser
  • the-real-dk
  • tinchoz49
  • estebanprimost