@jimizai/bytes

1.0.3 • Public • Published

bytes

This library can easily and quickly convert js string to bytes

install

Install bytes using yarn:

yarn add @jimizai/bytes -S

Install bytes using npm

npm i @jimizai/bytes -S

usage

import { b } from "@jimizai/bytes";
const bytes = b`hello wolrd`;
// => Uint8Array(11) [
//   104, 101, 108, 108,
//   111,  32, 119, 111,
//   108, 114, 100
// ]

Package Sidebar

Install

npm i @jimizai/bytes

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

8.07 kB

Total Files

5

Last publish

Collaborators

  • jimizai