https://github.com/tdanks2000/fancyconsolelog
https://github.com/tdanks2000/fancyconsolelog
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tdanks2000/fancyconsolelog
- Owner: TDanks2000
- Created: 2023-04-15T14:55:49.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T14:58:03.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T04:37:29.265Z (4 months ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Fancy Console Log
Fancy Console Log is a simple library that allows you to log messages to the console in a more readable format.
## Installation
```bash
# npm
npm install @tdanks2000/fancyconsolelog
``````bash
# yarn
yarn add @tdanks2000/fancyconsolelog
```## Usage
```ts
import Console from "@tdanks2000/fancyconsolelog";// logs a message
const console = new Console();
console.log("Hello World!");// logs a message with a custom color using the setColor function
const console = new Console();
console.setColor("red");
console.log("Hello World!");// logs a message with a custom color
const console = new Console("red");
console.log("Hello World!");// logs a message with a custom color and background color
const console = new Console("red", "bgBlue");
console.log("Hello World!");// log a error message
const console = new Console();
console.error("Hello World!");// log a warning message
const console = new Console();
console.warn("Hello World!");// log a info message
const console = new Console();
console.info("Hello World!");
```## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)