new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

api/io

17 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Deno.Buffer replaced with @std/io/buffer

Deno.Buffer has been removed. Use Buffer from jsr:@std/io/buffer instead. Change const buffer = new Deno.Buffer() to import { Buffer } from "jsr:@std/io/buffer" and then const buffer = new Buffer().

Deno.Closer replaced with @std/io/types

Deno.Closer has been removed. Use Closer type from jsr:@std/io/types instead. Change function foo(closer: Deno.Closer) to import type { Closer } from "jsr:@std/io/types" and function foo(closer: Closer).

Deno.copy() replaced with @std/io/copy

Deno.copy() has been removed. Use copy() from jsr:@std/io/copy instead. Change await Deno.copy(file, Deno.stdout) to import { copy } from "jsr:@std/io/copy" and await copy(file, Deno.stdout).

Deno.isatty() replaced with resource.isTerminal()

Deno.isatty(rid) has been removed. Use isTerminal() method on resources instead: file.isTerminal() for files, Deno.stdin.isTerminal() for stdin, Deno.stdout.isTerminal() for stdout, or Deno.stderr.isTerminal() for stderr.

Deno.iter() replaced with @std/io iterateReader

Deno.iter() has been removed. Use iterateReader() from jsr:@std/io/iterate-reader instead. Change for await (const chunk of Deno.iter(file)) to import { iterateReader } from "jsr:@std/io/iterate-reader" and for await (const chunk of iterateReader(file)).

Deno.iterSync() replaced with @std/io iterateReaderSync

Deno.iterSync() has been removed. Use iterateReaderSync() from jsr:@std/io/iterate-reader instead. Change for (const chunk of Deno.iterSync(file)) to import { iterateReaderSync } from "jsr:@std/io/iterate-reader" and for (const chunk of iterateReaderSync(file)).

Deno.readAllSync() replaced with @std/io readAllSync

Deno.readAllSync() has been removed. Use readAllSync() from jsr:@std/io/read-all instead. Change const data = Deno.readAllSync(file) to import { readAllSync } from "jsr:@std/io/read-all" and const data = readAllSync(file).

Deno.readAll() replaced with @std/io readAll

Deno.readAll() has been removed. Use readAll() from jsr:@std/io/read-all instead. Change const data = await Deno.readAll(file) to import { readAll } from "jsr:@std/io/read-all" and const data = await readAll(file).

Deno.Reader replaced with @std/io Reader

Deno.Reader type has been removed. Use Reader from jsr:@std/io/types instead. Change function foo(reader: Deno.Reader) to import type { Reader } from "jsr:@std/io/types" and function foo(reader: Reader).

Deno.ReaderSync replaced with @std/io ReaderSync

Deno.ReaderSync type has been removed. Use ReaderSync from jsr:@std/io/types instead. Change function foo(reader: Deno.ReaderSync) to import type { ReaderSync } from "jsr:@std/io/types" and function foo(reader: ReaderSync).

Deno.SeekerSync replaced with @std/io SeekerSync

Deno.SeekerSync type has been removed. Use SeekerSync from jsr:@std/io/types instead. Change function foo(seeker: Deno.SeekerSync) to import type { SeekerSync } from "jsr:@std/io/types" and function foo(seeker: SeekerSync).

Deno.writeAllSync() replaced with @std/io writeAllSync

Deno.writeAllSync() has been removed. Use writeAllSync() from jsr:@std/io/write-all instead. Change Deno.writeAllSync(Deno.stdout, data) to import { writeAllSync } from "jsr:@std/io/write-all" and writeAllSync(Deno.stdout, data).

Deno.writeAll() replaced with @std/io writeAll

Deno.writeAll() has been removed. Use writeAll() from jsr:@std/io/write-all instead. Change await Deno.writeAll(Deno.stdout, data) to import { writeAll } from "jsr:@std/io/write-all" and await writeAll(Deno.stdout, data).

Deno.Writer replaced with @std/io Writer

Deno.Writer type has been removed. Use Writer from jsr:@std/io/types instead. Change function foo(writer: Deno.Writer) to import type { Writer } from "jsr:@std/io/types" and function foo(writer: Writer).

Deno.WriterSync replaced with @std/io WriterSync

Deno.WriterSync type has been removed. Use WriterSync from jsr:@std/io/types instead. Change function foo(writer: Deno.WriterSync) to import type { WriterSync } from "jsr:@std/io/types" and function foo(writer: WriterSync).

Deno.writeSync() replaced with resource.writeSync()

Deno.writeSync(rid, buffer) has been removed. Use the .writeSync() method on the resource instead. Change Deno.writeSync(file.rid, buffer) to file.writeSync(buffer) or Deno.writeSync(conn.rid, buffer) to conn.writeSync(buffer).

Deno.write() replaced with resource.write()

Deno.write(rid, buffer) has been removed. Use the .write() method on the resource instead. Change await Deno.write(file.rid, buffer) to await file.write(buffer) or await Deno.write(conn.rid, buffer) to await conn.write(buffer).

Give your agent this brain