@vaporsproject/bytes

Bytes utility functions for vapors.

Usage no npm install needed!

<script type="module">
  import vaporsprojectBytes from 'https://cdn.skypack.dev/@vaporsproject/bytes';
</script>

README

Byte Manipulation

This sub-module is part of the vapors project.

It is responsible for manipulating binary data.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    isBytesLike,
    isBytes,

    arrayify,

    concat,

    stripZeros,
    zeroPad,

    isHexString,
    hexlify,

    hexDataLength,
    hexDataSlice,
    hexConcat,

    hexValue,

    hexStripZeros,
    hexZeroPad,

    splitSignature,
    joinSignature,

    // Types

    Bytes,
    BytesLike,

    DataOptions,

    Hexable,

    SignatureLike,
    Signature

} = require("@vaporsproject/bytes");

License

MIT License