https://github.com/abiriadev/multi-console
:rocket:multi-console is a module for clustering console outputs
https://github.com/abiriadev/multi-console
cli logger npm
Last synced: 6 months ago
JSON representation
:rocket:multi-console is a module for clustering console outputs
- Host: GitHub
- URL: https://github.com/abiriadev/multi-console
- Owner: abiriadev
- License: mit
- Created: 2021-07-05T15:01:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T01:30:44.000Z (over 1 year ago)
- Last Synced: 2025-12-13T03:46:31.275Z (7 months ago)
- Topics: cli, logger, npm
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/multi-console
- Size: 2.11 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Multi-Console
---
multi-console is a module for clustering console outputs
## installation
```sh
npm i multi-console
npm i -g multi-console
```
## usage
you must install this package by both global, and normal.
then you can create a new Console object with `new mc.Console()` and use it like native `console.log()` function, like the [example code](#example).
but if you want to print the output, you have to execute the `mc` global command at the place you want.
then, everything has automatically will be worked.
## example
```js
import * as mc from "../index"
const mycon = new mc.Console()
let i = 0
setInterval(() => {
mycon.log(`hello! ${++i}`)
}, 2000)
```
## contribute
are you want to contribute to this repository?
please read [CONTRIBUTING.md](./CONTRIBUTING.md)!