@gpa-gemstone/helper-functions
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.16 • Public • Published

    helper-functions

    gemstone logo

    The Gemstone Web Library organizes all Gemstone functionality related to web.

    GitHub license

    This library includes helpful npm package component for various helper functions such as generating information about a given html element, checking if a value is a number or an integer, or generating a random color.

    Usage

    # returns Unique GUID
    CreateGuid();
    
    # returns Text height
    GetTextHeight(font: string, fontSize: string, word: string);
    
    # returns Text width
    GetTextWidth(font: string, fontSize: string, word: string);
    
    # returns Node size
    GetNodeSize(node: HTMLElement | null);
    
    # returns True if int and false otherwise
    IsInteger(value: any);
    
    # returns True if number and false otherwise
    IsNumber(value: any);
    
    # returns random color
    RandomColor();

    Install

    npm i @gpa-gemstone/helper-functions

    DownloadsWeekly Downloads

    121

    Version

    0.0.16

    License

    MIT

    Unpacked Size

    24.1 kB

    Total Files

    20

    Last publish

    Collaborators

    • gcsantos
    • elwills
    • wbernest
    • clackner-gpa