Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/io/read_short.ts>readShort

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readShort
Deprecated
Deprecated

(will be removed after 1.0.0) Use the [Web Streams API]https://developer.mozilla.org/en-US/docs/Web/API/Streams_API instead.

import { readShort } from "https://deno.land/std@0.208.0/io/read_short.ts";

Read big endian 16bit short from BufReader

Returns

Promise<number | null>