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

std/node/os.ts>endianness

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function endianness
import { endianness } from "https://deno.land/std@0.72.0/node/os.ts";

Returns a string identifying the endianness of the CPU for which the Deno binary was compiled. Possible values are 'BE' for big endian and 'LE' for little endian.

Returns

"BE" | "LE"