node/deps/npm/node_modules/gauge/lib/base-theme.js
npm team 8a03482cf1
deps: upgrade npm to 8.1.4
PR-URL: https://github.com/nodejs/node/pull/40865
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2021-11-22 09:37:01 +01:00

19 lines
424 B
JavaScript

'use strict'
var spin = require('./spin.js')
var progressBar = require('./progress-bar.js')
module.exports = {
activityIndicator: function (values, theme, width) {
if (values.spun == null) {
return
}
return spin(theme, values.spun)
},
progressbar: function (values, theme, width) {
if (values.completed == null) {
return
}
return progressBar(theme, width, values.completed)
},
}