UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

41 lines (26 loc) β€’ 2.75 kB
# Documentation Menu Welcome to the documentation! This is the central hub for exploring all available resources. Here, you can navigate through different sections of the project. Below are the main directories: --- ## πŸ“š Main Directories ### 1. **`basics/`** This folder contains the core scripts we have worked on so far. Each file is a module focused on specific functionality. - πŸ“¦ **[array](./basics/array.md)** β€” A tiny utility for shuffling arrays using the Fisher–Yates algorithm. - ⏰ **[clock](./basics/clock.md)** β€” A versatile time utility module for calculating and formatting time durations. - 🧠 **[objFilter](./basics/objFilter.md)** β€” Type detection, extension, and analysis made easy with simple and extensible type validation. - πŸ”’ **[simpleMath](./basics/simpleMath.md)** β€” A collection of simple math utilities for calculations like the Rule of Three and percentages. - ✍️ **[text](./basics/text.md)** β€” A utility for transforming text into title case formats, with multiple options for capitalization. - πŸ”„ **[asyncReplace](./basics/asyncReplace.md)** β€” Asynchronously replaces matches in a string using a regex and an async function. ### 2. **`libs/`** - πŸ—‚οΈ **[TinyPromiseQueue](./libs/TinyPromiseQueue.md)** β€” A class that allows sequential execution of asynchronous tasks, supporting task delays, cancellation, and queue management. - πŸ… **[TinyLevelUp](./libs/TinyLevelUp.md)** β€” A class to manage user level-up logic based on experience points, providing methods for experience validation, addition, removal, and calculation. - 🎨 **[ColorSafeStringify](./libs/ColorSafeStringify.md)** β€” A utility for applying customizable ANSI colors to JSON strings in terminal outputs, supporting presets and fine-grained type-based highlighting. - 🚦 **[TinyRateLimiter](./libs/TinyRateLimiter.md)** β€” A flexible per-user rate limiter supporting time windows, hit caps, and automatic cleanup of inactive users. * πŸ”” **[TinyNotifyCenter](./libs/TinyNotifyCenter.md)** β€” A dynamic notification center class to display, manage, and interact with notifications, supporting avatars, clickable items, HTML/text modes, and clean UI controls. * 🍞 **[TinyToastNotify](./libs/TinyToastNotify.md)** β€” A lightweight toast notification system supporting positioning, timing customization, avatars, click actions, and fade-out animations. --- ## πŸš€ Usage To get started, navigate to the appropriate directory and explore the files listed. Each script includes detailed documentation on how to use the respective functionality. --- ## πŸ“‘ Contributing Feel free to suggest changes, improvements, or additional features. You can fork the repository and submit a pull request!