Wondering what’s next for npm?Check out our public roadmap! »

    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

    Install

    npm i byte-morph

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    Apache-2.0

    Unpacked Size

    5.33 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar