$61 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/gauge/lib/

HOME
Current File : /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/gauge/lib//plumbing.js
'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()
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
base-theme.js
0.414 KB
6 Dec 2023 6.07 PM
root / root
0644
error.js
0.602 KB
6 Dec 2023 6.07 PM
root / root
0644
has-color.js
0.097 KB
6 Dec 2023 6.07 PM
root / root
0644
index.js
7.117 KB
6 Dec 2023 6.07 PM
root / root
0644
plumbing.js
1.249 KB
6 Dec 2023 6.07 PM
root / root
0644
process.js
0.087 KB
6 Dec 2023 6.07 PM
root / root
0644
progress-bar.js
1.011 KB
6 Dec 2023 6.07 PM
root / root
0644
render-template.js
5.811 KB
6 Dec 2023 6.07 PM
root / root
0644
set-immediate.js
0.136 KB
6 Dec 2023 6.07 PM
root / root
0644
set-interval.js
0.091 KB
6 Dec 2023 6.07 PM
root / root
0644
spin.js
0.103 KB
6 Dec 2023 6.07 PM
root / root
0644
template-item.js
1.931 KB
6 Dec 2023 6.07 PM
root / root
0644
theme-set.js
3.633 KB
6 Dec 2023 6.07 PM
root / root
0644
themes.js
1.628 KB
6 Dec 2023 6.07 PM
root / root
0644
wide-truncate.js
0.838 KB
6 Dec 2023 6.07 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF