@stayradiated/slog
v1.4.0
Published
Log a message with a promise, including a success or fail message
Downloads
2
Maintainers
Readme
Slog
Track how long an async task is taking
Installation
npm install @stayradiated/slog
Usage
import slog from '@stayradiated/slog'
import execa from 'execa'
await slog(
'Installing dependencies',
execa('npm', ['install'])
)
/*
Installing dependencies (0:00)
Installing dependencies (0:01)
Installing dependencies (0:02)
Installing dependencies (0:03) ✓
*/