@exodus/bufferize

1.0.2 • Public • Published

@exodus/bufferize

Traverses an object and transforms every UInt8Array into a Buffer.

Install

yarn add @exodus/bufferize

Usage

import bufferize from '@exodus/bufferize'

function wrapRpcHandler(handler) {
  return (event, ...args) => {
    return handler(event, ...bufferize(args))
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @exodus/bufferize

Weekly Downloads

103

Version

1.0.2

License

MIT

Unpacked Size

3.43 kB

Total Files

5

Last publish

Collaborators

  • joshuabot