Skip to content

Instantly share code, notes, and snippets.

@caritasverein
Created July 9, 2018 07:35
Show Gist options
  • Save caritasverein/6cac926bc06b9fe074d057d6405896d9 to your computer and use it in GitHub Desktop.
Save caritasverein/6cac926bc06b9fe074d057d6405896d9 to your computer and use it in GitHub Desktop.
Example code for signale interactive logging
const {Signale} = require('signale');
const interactive = new Signale({interactive: true, scope: 'interactive'});
interactive.await('[%d/4] - Process A', 1);
setTimeout(() => {
interactive.success('[%d/4] - Process A', 2);
setTimeout(() => {
interactive.await('[%d/4] - Process B', 3);
setTimeout(() => {
interactive.error('[%d/4] - Process B', 4);
setTimeout(() => {}, 1000);
}, 1000);
}, 1000);
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment