You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict";constConsole=require("ffg-framework/console.js");constcon=newConsole();con.log("Hello World,");con.warn("Warning: Error Up Ahead...");con.error("We Warned You!");con.write("This is new...").nl().write("Very New!").warn();con.log(JSON.stringify(con.logs));
Documentation
/** * @author FFGFlash * @version 1.0.0 * @since 1.0.0 */console=newConsole();/** * Sends a Message to the Console. * @param message The Message to Send to the Console. * @return undefined. */Console.log(...message);console.log(...message);/** * Sends an Error Message to the Console. * @param message The Error Message to Send to the Console. * @return undefined. */Console.error(...message);console.error(...message);/** * Sends a Warning Message to the Console. * @param message The Warning Message to Send to the Console. * @return undefined. */Console.warn(...message);console.warn(...message);/** * Creates a New Console.Message Object. * @param message The Message. * @return Console.Message Instance. */Console.write(...message);console.write(...message);/** * An Array Containing All Messages Sent to the Console. * Local to the Console instance, or Global if Called Statically. */Console.logs;console.logs;/** * Message LOG Type. */Console.LOG;/** * Message ERROR Type. */Console.ERROR;/** * Message WARN Type. */Console.WARN;/** * @author FFGFlash * @version 1.0.0 * @since 1.0.0 * @param console An Instance of Console or Console. * @param message The Message Which The Console.Message Object Represents. */message=newConsole.Message(console,message);/** * Add to the Message. * @param message The Content to Mend to the Message. * @return Console.Message Instance. */message.write(...message);/** * Appends Native NewLine Character. * @return Console.Message Instance. */message.nl();/** * Sends the Message to the Console as a Message. * @return undefined. */message.log();/** * Sends the Message to the Console as an Error Message. * @return undefined. */message.error();/** * Sends the Message to the Console as a Warning Message. * @return undefined. */message.warn();
/** * @author FFGFlash * @version 1.1.1 * @since 1.0.0 * @param FlagResolvable Either a String or Number Which can be Resolved to the Bitfield.FLAGS. */bitdata=newBitdata(...flags);/** * The Number Representation of the Bitdata. */bitdata.bitfield/** * Resolve the Bitfield to Binary. * @return The Bitfield as a Binary String. */bitdata.toBits();/** * Add a Flag to the Bitdata Instance. * @param flag A FlagResolvable Value. * @return The Bitdata Instance. */bitdata.add(flag);/** * Remove a Flag from the Bitdata Instance. * @param flag A FlagResolvable Value. * @return The Bitdata Instance. */bitdata.remove(flag);/** * Check if the Bitdata Instance has a Flag. * @param flag A FlagResolvable Value. * @return A Boolean Whether or not it has the Flag. */bitdata.has(flag);/** * Returns an Array of FlagResolvables. * @return An Array Containing FlagResolvable Strings. */bitdata.toArray();/** * The Bitfield Value of All Flags. */Bitdata.ALL;/** * Resolve a FlagResolvable Value to a Number. * @param flag A FlagResolvable Value. * @return The Bitfield Value of a FlagResolvable. */Bitdata.serialize(flag);/** * List of FlagResolvables */Bitdata.FLAGS;
/** * @author FFGFlash * @version 1.0.0 * @since 1.0.0 */eventHandler=newEventHandler();/** * Add a New Listener to the EventHandler Instance. * @param name The Name of the Event. * @param callback The Callback for said Event. * @return The EventHandler Instance. */eventHandler.on(name,callback);/** * Emit an Event on the EventHandler Instance. * @param name The Name of the Event. * @param arguments The Arguments to be Parsed to the Event Callback. * @return undefined. */eventHandler.emit(name, ...arguments);/** * A Complete List of all Events and Callbacks. */eventHandler.events;