Skip to main content
endianness - os - Node documentation
function endianness

Usage in Deno

import { endianness } from "node:os";
endianness(): "BE" | "LE"

Returns a string identifying the endianness of the CPU for which the Node.js binary was compiled.

Possible values are 'BE' for big endian and 'LE' for little endian.

Return Type

"BE" | "LE"
Back to top