$29 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/node_modules/npm/node_modules/gauge/

HOME
Current File : /lib/node_modules/npm/node_modules/gauge//wide-truncate.js
'use strict'
var stringWidth = require('string-width')
var stripAnsi = require('strip-ansi')

module.exports = wideTruncate

function wideTruncate (str, target) {
  if (stringWidth(str) === 0) return str
  if (target <= 0) return ''
  if (stringWidth(str) <= target) return str

  // We compute the number of bytes of ansi sequences here and add
  // that to our initial truncation to ensure that we don't slice one
  // that we want to keep in half.
  var noAnsi = stripAnsi(str)
  var ansiSize = str.length + noAnsi.length
  var truncated = str.slice(0, target + ansiSize)

  // we have to shrink the result to account for our ansi sequence buffer
  // (if an ansi sequence was truncated) and double width characters.
  while (stringWidth(truncated) > target) {
    truncated = truncated.slice(0, -1)
  }
  return truncated
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
node_modules
--
31 Aug 2024 8.02 AM
root / root
0755
CHANGELOG.md
6.227 KB
10 Mar 2021 9.36 PM
root / root
0644
LICENSE
0.733 KB
10 Mar 2021 9.36 PM
root / root
0644
README.md
14.72 KB
10 Mar 2021 9.36 PM
root / root
0644
base-theme.js
0.386 KB
10 Mar 2021 9.36 PM
root / root
0644
error.js
0.602 KB
10 Mar 2021 9.36 PM
root / root
0644
has-color.js
0.285 KB
10 Mar 2021 9.36 PM
root / root
0644
index.js
6.835 KB
10 Mar 2021 9.36 PM
root / root
0644
package.json
2.13 KB
10 Mar 2021 9.36 PM
root / root
0644
plumbing.js
1.239 KB
10 Mar 2021 9.36 PM
root / root
0644
process.js
0.087 KB
10 Mar 2021 9.36 PM
root / root
0644
progress-bar.js
0.975 KB
10 Mar 2021 9.36 PM
root / root
0644
render-template.js
5.604 KB
10 Mar 2021 9.36 PM
root / root
0644
set-immediate.js
0.136 KB
10 Mar 2021 9.36 PM
root / root
0644
set-interval.js
0.091 KB
10 Mar 2021 9.36 PM
root / root
0644
spin.js
0.103 KB
10 Mar 2021 9.36 PM
root / root
0644
template-item.js
1.859 KB
10 Mar 2021 9.36 PM
root / root
0644
theme-set.js
3.606 KB
10 Mar 2021 9.36 PM
root / root
0644
themes.js
1.507 KB
10 Mar 2021 9.36 PM
root / root
0644
wide-truncate.js
0.809 KB
10 Mar 2021 9.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF