REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.26 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/nodemailer/lib/mime-node/le-windows.js
Text
Base64
'use strict'; const stream = require('stream'); const Transform = stream.Transform; /** * Ensures that only <CR><LF> sequences are used for linebreaks * * @param {Object} options Stream options */ class LeWindows extends Transform { constructor(options) { super(options); // init Transform this.options = options || {}; this.lastByte = false; } /** * Escapes dots */ _transform(chunk, encoding, done) { let buf; let lastPos = 0; for (let i = 0, len = chunk.length; i < len; i++) { if (chunk[i] === 0x0a) { // \n if ((i && chunk[i - 1] !== 0x0d) || (!i && this.lastByte !== 0x0d)) { if (i > lastPos) { buf = chunk.slice(lastPos, i); this.push(buf); } this.push(Buffer.from('\r\n')); lastPos = i + 1; } } } if (lastPos && lastPos < chunk.length) { buf = chunk.slice(lastPos); this.push(buf); } else if (!lastPos) { this.push(chunk); } this.lastByte = chunk[chunk.length - 1]; done(); } } module.exports = LeWindows;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
44.01 KB
lrw-r--r--
2026-02-21 00:53:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
last-newline.js
670 B
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
le-unix.js
961 B
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
le-windows.js
1.26 KB
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).