Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/htmlparser2/lib/esm/ drwxr-xr-x |
Viewing file: Select action/file-type: import { Parser } from "./Parser.js"; /* * NOTE: If either of these two imports produces a type error, * please update your @types/node dependency! */ import { Writable } from "node:stream"; import { StringDecoder } from "node:string_decoder"; // Following the example in https://nodejs.org/api/stream.html#stream_decoding_buffers_in_a_writable_stream function isBuffer(_chunk, encoding) { return encoding === "buffer"; } /** * WritableStream makes the `Parser` interface available as a NodeJS stream. * * @see Parser */ export class WritableStream extends Writable { constructor(cbs, options) { super({ decodeStrings: false }); this._decoder = new StringDecoder(); this._parser = new Parser(cbs, options); } _write(chunk, encoding, callback) { this._parser.write(isBuffer(chunk, encoding) ? this._decoder.write(chunk) : chunk); callback(); } _final(callback) { this._parser.end(this._decoder.end()); callback(); } } //# sourceMappingURL=WritableStream.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0038 ]-- |