Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromStream = void 0;
const concat_1 = require("../buffers/concat");
const fromStream = async (stream) => {
const reader = stream.getReader();
const chunks = [];
while (true) {
const { done, value } = await reader.read();
if (done)
break;
chunks.push(value);
}
return (0, concat_1.listToUint8)(chunks);
};
exports.fromStream = fromStream;
//# sourceMappingURL=fromStream.js.map