info
The info method logs messages to the terminal using console.info with an automatic cyan color applied to all string arguments. Non-string arguments are passed through unchanged.
Signature
betterConsole.info(...args: any[]): void
Parameters
...args: One or more values to log. String arguments are automatically styled with cyan color.
Usage
import betterConsole from "ts-better-console";
// Log an info message (displayed in cyan)
betterConsole.info("Server started on port 3000");
// Log multiple arguments
betterConsole.info("Connected to database:", "mydb");
// Mix string and non-string arguments
betterConsole.info("Request count:", 42);
Want to support this project?
If you find ts-better-console useful and want to support its development, consider starring the GitHub repository or buying me a coffee! Your support helps me dedicate more time to improving the library and adding new features.
Want to contribute to this project?
Contributions are welcome! If you're interested in improving the library, fixing bugs, or adding new features, feel free to check out the GitHub repository and submit a pull request. Whether you're a seasoned developer or new to open source, your contributions can make a difference!