One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
node-readable-stream
/
examples
/
View File Name :
capslocktyper.js
var Transform = require('readable-stream/transform'); var inherits = require('util').inherits; // subclass function MyStream () { Transform.call(this, { lowWaterMark: 0, encoding: 'utf8' }); } inherits(MyStream, Transform); MyStream.prototype._transform = function (chunk, outputFn, callback) { outputFn(Buffer.from(String(chunk).toUpperCase())); callback(); }; // use it! var s = new MyStream(); process.stdin.resume(); process.stdin.pipe(s).pipe(process.stdout); if (process.stdin.setRawMode) process.stdin.setRawMode(true); process.stdin.on('data', function (c) { c = c.toString(); if (c === '\u0003' || c === '\u0004') { process.stdin.pause(); s.end(); } if (c === '\r') process.stdout.write('\n'); });