Socket
Socket
Sign inDemoInstall

consome

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

consome


Version published
Maintainers
1
Install size
99.1 kB
Created

Readme

Source

Consome = Console + Awesome :raised_hands:

Add a logAt(index, message) function to your NodeJS console.

Install

yarn add -D consome

or

npm i -save-dev consome

Basic Usage

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:

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.

FAQs

Last updated on 09 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc