CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/node_modules/consola/src/utils/
Upload File :
Current File : /var/www/hrms.uiet.co.in/node_modules/consola/src/utils/stream.js

import { writeSync } from 'fs'

export function writeStream (data, stream, mode = 'default') {
  const write = stream.__write || stream.write

  switch (mode) {
    case 'async':
      return new Promise((resolve) => {
        if (write.call(stream, data) === true) {
          resolve()
        } else {
          stream.once('drain', () => { resolve() })
        }
      })
    case 'sync':
      return writeSync(stream.fd, data)
    default:
      return write.call(stream, data)
  }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY