⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
nodejs
/
libtap
/
lib
/
View File Name :
stdin.js
'use strict' const ownOr = require('own-or') const Base = require('./base.js') class Stdin extends Base { constructor (options) { options = options || {} options.name = ownOr(options, 'name', '/dev/stdin') super(options) // This has to be here for node 0.10's wonky streams this.stream = ownOr(options, 'tapStream', process.stdin) this.stream.pause() } main (cb) { this.stream.on('error', er => { er.tapCaught = 'stdinError' this.threw(er) }) this.setTimeout(this.options.timeout) this.stream.pipe(this.parser) if (this.parent) this.parent.emit('stdin', this) this.stream.resume() this.once('end', cb) } threw (er, extra, proxy) { extra = super.threw(er, extra, proxy) this.options = extra this.parser.abort(er.message, extra) this.parser.end() } } module.exports = Stdin