ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/gauge/lib
/
lib
node_modules
npm
node_modules
gauge
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
base-theme.js
424 B
chmod
View
DL
Edit
Rename
Delete
error.js
616 B
chmod
View
DL
Edit
Rename
Delete
has-color.js
99 B
chmod
View
DL
Edit
Rename
Delete
index.js
7.12 MB
chmod
View
DL
Edit
Rename
Delete
plumbing.js
1.25 MB
chmod
View
DL
Edit
Rename
Delete
process.js
89 B
chmod
View
DL
Edit
Rename
Delete
progress-bar.js
1.01 MB
chmod
View
DL
Edit
Rename
Delete
render-template.js
5.81 MB
chmod
View
DL
Edit
Rename
Delete
set-immediate.js
139 B
chmod
View
DL
Edit
Rename
Delete
set-interval.js
93 B
chmod
View
DL
Edit
Rename
Delete
spin.js
105 B
chmod
View
DL
Edit
Rename
Delete
template-item.js
1.93 MB
chmod
View
DL
Edit
Rename
Delete
theme-set.js
3.63 MB
chmod
View
DL
Edit
Rename
Delete
themes.js
1.63 MB
chmod
View
DL
Edit
Rename
Delete
wide-truncate.js
858 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/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() }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply