This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

bsqsq

1.0.1 • Public • Published

bsqsq

b'' for short, bsqsq converts hexstrings to python bytearray notation

Usage

import bsqsq from "bsqsq";
const hexString = "e9eed8dc39332032dc22e5d6e86332c50327ba23";
const byteArray = bsqsq(hexString); // becomes b'\xe9\xee\xd8\xdc93 2\xdc"\xe5\xd6\xe8c2\xc5\x03\'\xba#'
const revByteArray = bsqsq(hexString, true); // becomes b'#\xba\'\x03\xc52c\xe8\xd6\xe5"\xdc2 39\xdc\xd8\xee\xe9'

Package Sidebar

Install

npm i bsqsq

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

147 kB

Total Files

12

Last publish

Collaborators

  • _jptrs