Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
const response = await fetch(url);
const decoder = new TextDecoder();
let text = '';
for await (const chunk of response.body) {
text += decoder.decode(chunk);
}const response = await fetch(url);
const decoder = new TextDecoder();
let text = '';
for await (const chunk of response.body) {
text += decoder.decode(chunk, {stream: true});
}
text += decoder.decode();Popular · 1 of 50
Require streaming decoding of fetch-body chunks with TextDecoder.
const response = await fetch(url);
const decoder = new TextDecoder();
let text = '';
for await (const chunk of response.body) {
text += decoder.decode(chunk);
}const response = await fetch(url);
const decoder = new TextDecoder();
let text = '';
for await (const chunk of response.body) {
text += decoder.decode(chunk, {stream: true});
}
text += decoder.decode();