### Install Fancy Hello World with npm Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Installs the fancyhelloworld-demo library using npm. This is the standard way to add the library to your project for use. ```bash npm install fancyhelloworld-demo ``` ```bash npm install ``` -------------------------------- ### Complete Configuration Example for fancyHelloWorld() Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Demonstrates all available configuration options for the fancyHelloWorld function, including text, case sensitivity, letter spacing, and fill/empty characters. It also includes an error handling example for unsupported characters and a use case for creating a terminal banner. The function requires no external dependencies. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Complete configuration object with all options fancyHelloWorld({ text: 'HELLO WORLD', // Text to display (default: 'HELLO WORLD') caseSensitive: false, // Convert to uppercase (default: false) letterSpacing: 1, // Spaces between letters (default: 1) fillChar: '1', // Character for filled pixels (default: '1') emptyChar: '0' // Character for empty pixels (default: '0') }); // Error handling example (unsupported characters) try { fancyHelloWorld({ text: 'ABC123' }); // Note: Unsupported characters are silently skipped // Only H, E, L, O, W, R, D, and spaces are rendered } catch (error) { console.error('Error rendering text:', error); } // Use case: Terminal banner console.log('\n================================='); fancyHelloWorld({ text: 'HELLO', fillChar: '▓', emptyChar: '░', letterSpacing: 2 }); console.log('=================================\n'); ``` -------------------------------- ### API Usage: Fancy Hello World with Options Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Illustrates a comprehensive example of using the `fancyHelloWorld` function with multiple configuration options, including text, custom characters, and letter spacing. ```javascript fancyHelloWorld({ text: "hello", fillChar: "*", emptyChar: ".", letterSpacing: 2, }); ``` -------------------------------- ### X and O Pattern ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Provides an example of creating ASCII art with an 'X' and 'O' pattern, reminiscent of tic-tac-toe. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Tic-tac-toe style fancyHelloWorld({ text: "WORLD", fillChar: "X", emptyChar: "O", }); ``` -------------------------------- ### Custom Characters: Block Style ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Illustrates how to customize the characters used for filled and empty pixels in the ASCII art output. This example uses block characters ('█' and '░') for a solid visual effect. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Use block characters for a solid look fancyHelloWorld({ text: "HELLO", fillChar: "█", emptyChar: "░", }); ``` -------------------------------- ### Increased Letter Spacing in ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Explains how to adjust the spacing between letters in the generated ASCII art by setting the `letterSpacing` option. This example increases the spacing to 3. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Add more space between letters for better readability fancyHelloWorld({ text: "HELLO", letterSpacing: 3, }); ``` -------------------------------- ### fancyHelloWorld() - Combined Styling Options Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Demonstrates using multiple configuration options simultaneously for complex visual effects. ```APIDOC ## fancyHelloWorld() - Combined Styling Options ### Description Combines various styling options such as custom text, fill characters, empty characters, and letter spacing to create sophisticated and unique ASCII art outputs. ### Method `JavaScript Function Call` ### Endpoint `N/A (Client-side library)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **text** (string) - Required - The text to be rendered as ASCII art. - **fillChar** (string) - Optional - The character to use for filled parts of the ASCII art. - **emptyChar** (string) - Optional - The character to use for empty spaces in the ASCII art. - **letterSpacing** (integer) - Optional - The number of spaces between each letter. ### Request Example ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Hash and dash programming style with extra spacing fancyHelloWorld({ text: 'HELLO', fillChar: '#', emptyChar: '-', letterSpacing: 2 }); // X and O tic-tac-toe style fancyHelloWorld({ text: 'WORLD', fillChar: 'X', emptyChar: 'O', letterSpacing: 1 }); // Emoji style for fun displays fancyHelloWorld({ text: 'HELLO', fillChar: '🔥', emptyChar: '💧' }); ``` ### Response #### Success Response (Output to console) - **ASCII Art** (string) - The rendered ASCII art incorporating all specified styling options. #### Response Example ``` // Example output for hash and dash programming style: # # ##### # # ### # # # # # # # ##### #### # # # # # # # # # # # # # # # # # # # # # # # # # # # ##### ##### ##### ### ``` ``` -------------------------------- ### Combine Styling Options for Complex ASCII Art Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Demonstrates the use of multiple configuration options simultaneously, such as custom characters and letter spacing, to create complex and stylized ASCII art outputs. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Hash and dash programming style with extra spacing fancyHelloWorld({ text: 'HELLO', fillChar: '#', emptyChar: '-', letterSpacing: 2 }); // X and O tic-tac-toe style fancyHelloWorld({ text: 'WORLD', fillChar: 'X', emptyChar: 'O', letterSpacing: 1 }); // Emoji style for fun displays fancyHelloWorld({ text: 'HELLO', fillChar: '🔥', emptyChar: '💧' }); ``` -------------------------------- ### Basic Usage: Print Default ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Demonstrates the fundamental usage of the fancyHelloWorld function from the 'fancyhelloworld-demo' library. It prints the default 'HELLO WORLD' message in ASCII art using 1s and 0s. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Print "HELLO WORLD" in ASCII art with 1s and 0s fancyHelloWorld(); ``` -------------------------------- ### fancyHelloWorld() - Basic Usage Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Renders text in ASCII art format using the default configuration (uppercase text with 1s and 0s). ```APIDOC ## fancyHelloWorld() - Basic Usage ### Description Renders text in ASCII art format using the default configuration (uppercase text with 1s and 0s). ### Method `JavaScript Function Call` ### Endpoint `N/A (Client-side library)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Display default "HELLO WORLD" message fancyHelloWorld(); ``` ### Response #### Success Response (Output to console) - **ASCII Art** (string) - The rendered ASCII art representation of the default "HELLO WORLD" message. #### Response Example ``` 1 1 11111 1 1 111 1 1 111 1111 1 1111 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11111 1111 1 1 1 1 1 1 1 1 1111 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 01 1 1 1 1 1 1 1 1 1 11111 11111 11111 111 1 1 111 1 1 11111 1111 ``` ``` -------------------------------- ### Render Default 'HELLO WORLD' ASCII Art Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Renders the default 'HELLO WORLD' message in ASCII art using the library's default configuration, which includes '1' for filled pixels and '0' for empty spaces. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Display default "HELLO WORLD" message fancyHelloWorld(); ``` -------------------------------- ### fancyHelloWorld() - Custom Fill and Empty Characters Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Customizes the characters used for filled pixels and empty spaces, enabling unique visual styles. ```APIDOC ## fancyHelloWorld() - Custom Fill and Empty Characters ### Description Customizes the characters used for filled pixels and empty spaces within the ASCII art, allowing for diverse visual styles. ### Method `JavaScript Function Call` ### Endpoint `N/A (Client-side library)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **text** (string) - Required - The text to be rendered as ASCII art. - **fillChar** (string) - Optional - The character to use for filled parts of the ASCII art. Defaults to '1'. - **emptyChar** (string) - Optional - The character to use for empty spaces in the ASCII art. Defaults to ' '. ### Request Example ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Block style using Unicode box drawing characters fancyHelloWorld({ text: 'HELLO', fillChar: '█', emptyChar: '░' }); // Asterisk and dot style fancyHelloWorld({ text: 'WORLD', fillChar: '*', emptyChar: '.' }); ``` ### Response #### Success Response (Output to console) - **ASCII Art** (string) - The rendered ASCII art with custom fill and empty characters. #### Response Example ``` // Output for fillChar: '█', emptyChar: '░' █ █ █████ █ █ ███ █ █ █ █ █ █ █ █████ ████ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █████ █████ █████ ███ // Output for fillChar: '*', emptyChar: '.' * * .*** ***** * **** * * * * * * * * * * * * * * * * * * * . * * * * * * * * * . * * * * * * * * ** ** * * * * * * * * * .*** ***** ***** **** ``` ``` -------------------------------- ### Emoji Style ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Shows how to use emojis as fill and empty characters to create visually distinct and fun ASCII art outputs. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Use emojis for a fun look fancyHelloWorld({ text: "HELLO", fillChar: "🔥", emptyChar: "💧", }); ``` -------------------------------- ### Hash and Dash Style ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Demonstrates a programming or terminal-style ASCII art using '#' for filled pixels and '-' for empty pixels, with added letter spacing. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Programming/terminal style fancyHelloWorld({ text: "HELLO", fillChar: "#", emptyChar: "-", letterSpacing: 2, }); ``` -------------------------------- ### Custom Text and Case-Insensitive ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Shows how to display custom text using the fancyHelloWorld function, with an emphasis on its case-insensitive nature. The library automatically converts input text to uppercase for rendering. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Works with lowercase, uppercase, or mixed case fancyHelloWorld({ text: "hello world" }); fancyHelloWorld({ text: "HELLO" }); fancyHelloWorld({ text: "WoRLd" }); ``` -------------------------------- ### fancyHelloWorld() - Custom Text Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Renders any custom text in ASCII art format, automatically converting to uppercase unless case sensitivity is enabled. ```APIDOC ## fancyHelloWorld() - Custom Text ### Description Renders any custom text in ASCII art format. By default, the input text is converted to uppercase. The library supports the letters H, E, L, O, W, R, D, and spaces. ### Method `JavaScript Function Call` ### Endpoint `N/A (Client-side library)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **text** (string) - Required - The text to be rendered as ASCII art. ### Request Example ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Display custom text (case-insensitive by default) fancyHelloWorld({ text: 'HELLO' }); // Works with lowercase input too fancyHelloWorld({ text: 'hello' }); // Mixed case also works fancyHelloWorld({ text: 'HeLLo' }); ``` ### Response #### Success Response (Output to console) - **ASCII Art** (string) - The rendered ASCII art representation of the provided custom text. #### Response Example ``` 1 1 11111 1 1 111 1 1 1 1 1 1 1 11111 1111 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11111 11111 11111 111 ``` ``` -------------------------------- ### Custom Characters: Asterisks and Dots ASCII Art Source: https://github.com/enesakar/fancyhelloworld/blob/main/README.md Demonstrates using asterisks ('*') for filled pixels and dots ('.') for empty pixels to create a classic ASCII art style. ```javascript const { fancyHelloWorld } = require("fancyhelloworld-demo"); // Use asterisks and dots for a classic look fancyHelloWorld({ text: "WORLD", fillChar: "*", emptyChar: ".", }); ``` -------------------------------- ### Customize Fill and Empty Characters for ASCII Art Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Allows customization of characters used for filled and empty pixels in the ASCII art output. This enables diverse visual styles, such as using block drawing characters or simple asterisks and dots. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Block style using Unicode box drawing characters fancyHelloWorld({ text: 'HELLO', fillChar: '█', emptyChar: '░' }); // Asterisk and dot style fancyHelloWorld({ text: 'WORLD', fillChar: '*', emptyChar: '.' }); ``` -------------------------------- ### Render Custom Text ASCII Art Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Renders custom text provided as an argument to the `fancyHelloWorld` function. By default, the text is converted to uppercase, but case sensitivity can be adjusted via configuration. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Display custom text (case-insensitive by default) fancyHelloWorld({ text: 'HELLO' }); // Works with lowercase input too fancyHelloWorld({ text: 'hello' }); // Mixed case also works fancyHelloWorld({ text: 'HeLLo' }); ``` -------------------------------- ### fancyHelloWorld() - Letter Spacing Control Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Adjusts the horizontal spacing between letters for improved readability or aesthetic purposes. ```APIDOC ## fancyHelloWorld() - Letter Spacing Control ### Description Adjusts the horizontal spacing between letters in the generated ASCII art. This can be used to improve readability or achieve specific aesthetic layouts. ### Method `JavaScript Function Call` ### Endpoint `N/A (Client-side library)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **text** (string) - Required - The text to be rendered as ASCII art. - **letterSpacing** (integer) - Optional - The number of spaces between each letter. Defaults to 1. ### Request Example ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Default spacing (1 space between letters) fancyHelloWorld({ text: 'HELLO', letterSpacing: 1 }); // Increased spacing for better readability fancyHelloWorld({ text: 'HELLO', letterSpacing: 3 }); // Minimal spacing for compact display fancyHelloWorld({ text: 'WORLD', letterSpacing: 0 }); ``` ### Response #### Success Response (Output to console) - **ASCII Art** (string) - The rendered ASCII art with adjusted letter spacing. #### Response Example ``` // Example with increased spacing (letterSpacing: 3): 1 1 11111 1 1 111 1 1 1 1 1 1 1 11111 1111 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 11111 11111 11111 111 ``` ``` -------------------------------- ### Control Letter Spacing in ASCII Art Source: https://context7.com/enesakar/fancyhelloworld/llms.txt Adjusts the horizontal spacing between characters in the ASCII art output. This feature can be used to improve readability or achieve specific aesthetic layouts. ```javascript const { fancyHelloWorld } = require('fancyhelloworld'); // Default spacing (1 space between letters) fancyHelloWorld({ text: 'HELLO', letterSpacing: 1 }); // Increased spacing for better readability fancyHelloWorld({ text: 'HELLO', letterSpacing: 3 }); // Minimal spacing for compact display fancyHelloWorld({ text: 'WORLD', letterSpacing: 0 }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.