Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siffogh/consome
Consome = Console + Awesome 🙌
https://github.com/siffogh/consome
console javascript node nodejs nodejs-console
Last synced: 2 months ago
JSON representation
Consome = Console + Awesome 🙌
- Host: GitHub
- URL: https://github.com/siffogh/consome
- Owner: siffogh
- License: apache-2.0
- Created: 2018-03-03T18:58:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T18:02:45.000Z (almost 7 years ago)
- Last Synced: 2024-10-04T12:47:59.914Z (3 months ago)
- Topics: console, javascript, node, nodejs, nodejs-console
- Language: JavaScript
- Homepage:
- Size: 397 KB
- Stars: 17
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consome = Console + Awesome :raised_hands:
Add a logAt(index, message) function to your NodeJS console.## Install
```sh
yarn add -D consome
```or
```sh
npm i -save-dev consome
```## Basic Usage
```js
require('consome');
console.logAt(0, 'logging something at line 0');
console.logAt(2, 'logging something at line 2');
```## Demo
Let's implement a dynamic terminal loader:
```js
require('consome');console.log('----- Demo -----');
const loadingLine = console.log('Loading');
setInterval(() => {
console.logAt(loadingLine, `Loading ${loader.next()}`)
}, 500);console.log('----- Fin -----');
```
### Result## License
Unless otherwise specified this project is licensed under [Apache License Version 2.0](./LICENSE).