byte-morph
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Byte Morph

Byte Morph is a utensil for bytes. It can convert your boring old digits and string into beautify bytes

Why

When using udp you deal with bytes. Since Javascript doesn't have a built in way when dealing with bytes in some of the formats that udp require, I noticed I needed to make something to make my life easier.

Usage

convertToBytes


import convertToBytes from 'byte-morph';
 
var digit = 5;
convertToBytes(digit, 16); // 0x5

License

Apache 2.0

Package Sidebar

Install

npm i byte-morph

Weekly Downloads

5

Version

0.0.1

License

Apache-2.0

Unpacked Size

5.33 kB

Total Files

14

Last publish

Collaborators

  • ahadcove