runemark 0.9.0

Opinionated terminal presentation for Rust command-line tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'

const { createProgress, Verdict } = require('../../packages/runemark')

const pages = [
  'https://example.com/',
  'https://example.com/about',
  'https://example.com/contact',
]
const progress = createProgress({ mode: 'auto' })

progress.start(pages.length, 'Checking pages')
for (const [index, page] of pages.entries()) {
  progress.advance(index + 1, page)
}
progress.finish(Verdict.Passed, 'Audit complete')