Current Path: > > usr > lib > node_modules > npm > > node_modules > > gauge
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.38 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
node_modules | Directory | - | - | |
CHANGELOG.md | File | 6376 bytes | March 10 2021 14:36:39. | |
LICENSE | File | 751 bytes | March 10 2021 14:36:39. | |
README.md | File | 15073 bytes | March 10 2021 14:36:39. | |
base-theme.js | File | 395 bytes | March 10 2021 14:36:39. | |
error.js | File | 616 bytes | March 10 2021 14:36:39. | |
has-color.js | File | 292 bytes | March 10 2021 14:36:39. | |
index.js | File | 6999 bytes | March 10 2021 14:36:39. | |
package.json | File | 2181 bytes | March 10 2021 14:36:39. | |
plumbing.js | File | 1269 bytes | March 10 2021 14:36:39. | |
process.js | File | 89 bytes | March 10 2021 14:36:39. | |
progress-bar.js | File | 998 bytes | March 10 2021 14:36:39. | |
render-template.js | File | 5739 bytes | March 10 2021 14:36:39. | |
set-immediate.js | File | 139 bytes | March 10 2021 14:36:39. | |
set-interval.js | File | 93 bytes | March 10 2021 14:36:39. | |
spin.js | File | 105 bytes | March 10 2021 14:36:39. | |
template-item.js | File | 1904 bytes | March 10 2021 14:36:39. | |
theme-set.js | File | 3693 bytes | March 10 2021 14:36:39. | |
themes.js | File | 1543 bytes | March 10 2021 14:36:39. | |
wide-truncate.js | File | 828 bytes | March 10 2021 14:36:39. |
'use strict' var consoleControl = require('console-control-strings') var renderTemplate = require('./render-template.js') var validate = require('aproba') var Plumbing = module.exports = function (theme, template, width) { if (!width) width = 80 validate('OAN', [theme, template, width]) this.showing = false this.theme = theme this.width = width this.template = template } Plumbing.prototype = {} Plumbing.prototype.setTheme = function (theme) { validate('O', [theme]) this.theme = theme } Plumbing.prototype.setTemplate = function (template) { validate('A', [template]) this.template = template } Plumbing.prototype.setWidth = function (width) { validate('N', [width]) this.width = width } Plumbing.prototype.hide = function () { return consoleControl.gotoSOL() + consoleControl.eraseLine() } Plumbing.prototype.hideCursor = consoleControl.hideCursor Plumbing.prototype.showCursor = consoleControl.showCursor Plumbing.prototype.show = function (status) { var values = Object.create(this.theme) for (var key in status) { values[key] = status[key] } return renderTemplate(this.width, this.template, values).trim() + consoleControl.color('reset') + consoleControl.eraseLine() + consoleControl.gotoSOL() }
SILENT KILLER Tool