https://github.com/psparwez/better-consoley
Better-consoley It is a drop-in replacement for Node's default console that provides additional colors in console.
https://github.com/psparwez/better-consoley
better-console better-consoley cosnole
Last synced: 6 months ago
JSON representation
Better-consoley It is a drop-in replacement for Node's default console that provides additional colors in console.
- Host: GitHub
- URL: https://github.com/psparwez/better-consoley
- Owner: psparwez
- Created: 2024-12-05T20:11:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-13T00:42:52.000Z (10 months ago)
- Last Synced: 2025-03-25T11:52:26.883Z (7 months ago)
- Topics: better-console, better-consoley, cosnole
- Language: TypeScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> [!WARNING]
> This is under maintenance due to the Node.js environment.
# Better consoley
[](https://www.npmjs.com/package/better-consoley)

## A better console for Node project.
**`Better Consoley`** is a drop-in replacement for Node.js' default console, offering enhanced logging with colorful output. It works seamlessly with existing code and is safe to use as it delegates calls to native console methods for compatibility## Installation
Install via **NPM**:
```shell
$ npm install better-consoley
```## Methods
### ๐ข `success(message: string)`
Logs a success message with a green color.### ๐ `warning(message: string)`
Logs a warning message with an orange color.### ๐ต `info(message: string)`
Logs an informational message with a blue color.### ๐ด `error(message: string)`
Logs an error message with a red color.These methods work exactly same as native console methods but with colors.
# How to use it
You can override `console` object itself or assign better console to another variable like {Log}. It's completely safe to override the native console object because better consoley calls native console methods for methods that are already available in it.```javascript
import { console } from "better-consoley";
console.success("Operation completed successfully!");
console.warning("This is a warning message.");
console.info("This is an info message.");
console.error("An error occurred!");```
## Why Better Consoley?
- Ease of Use: Seamlessly integrates into your existing project.
- Enhanced Debugging: Visual distinctions between log levels.
- Safe and Compatible: Uses native console methods where applicable.
- Customizable: console log output to match your needs.
ยท [Issues](https://github.com/psparwez/better-consoley/issues)