Nonvoluntary Professional Mangling

    craydent-function
    TypeScript icon, indicating that this package has built-in type declarations

    0.13.5 • Public • Published

    Craydent 0.13.5

    by Clark Inada

    Craydent is all inclusive utility library. There are several ways to use the library in NodeJS. More detailed documentation on constants can be found at Craydent Properties. More detailed documentation on methods can be found at Craydent Methods

    // require with prototypes - this require will add prototypes to extend classes and add two constants ($c, $g) to the global space.
    // $g is an alias to global and $c is the constant containing all the utility methods and properties.
    require('craydent-function');
    $c.logit($c.VERSION);
    arr.prototypedMethod(args);
    // require no conflict - this require is the fully modular version with no global constants, prototypes, or methods.
    var $c = require('craydent-function/noConflict');
    $c.logit($c.VERSION);
    $c.prototypedMethod(arr, args);
    // require global - this require constants and methods in the global space and add prototypes to extend classes.
    // $g is an alias to global and $c is the constant containing all the utility methods and properties.
    require('craydent-function/global');
    logit($c.VERSION);
    arr.prototypedMethod(args);

    Categories

    Constants

    CONSOLE_COLORS (Object) LOCAL_IP (String) TEMPLATE_TAG_CONFIG (Object)
    DEBUG_MODE (Boolean) MODULES_LOADED (Object) TEMPLATE_VARS (Array)
    ERROR_TYPES (Array) PUBLIC_IP (String) VERSION (String)
    HTTP_STATUS_TEMPLATE (Object) RESPONSES (Object)

    Methods

    Function


    emit


    Info: Call the next function(s) in queue

    Return: (Array)

    Parameters:

    • event: (String) Event to trigger.
    • ...infinite: (any) any number of arguments can be passed and will be applied to listening functions as arguments.

    Overloads:

    None


    next


    Info: Call the next function(s) in queue

    Return: (void)

    Parameters:

    • ...infinite: (any) any number of arguments can be passed.

    Overloads:

    None


    on


    Info: Function listener to register events

    Return: (Function)

    Parameters:

    • event: (String) Event to listen on and invoked on emit
    • func: (Function) Function to call on emit

    Overloads:

    None

    Download

    Install

    npm i craydent-function

    DownloadsWeekly Downloads

    34

    Version

    0.13.5

    License

    MIT

    Unpacked Size

    33.7 kB

    Total Files

    29

    Last publish

    Collaborators

    • craydent