Skip to content

EOL ​

EOL is the operating system's native line-ending sequence: "\r\n" on Windows, "\n" everywhere else.

SignatureEOL: string
tyrus
import { EOL } from "tyrus:os";

const report = `first line${EOL}second line`;
print(report);

A constant, not a function call

Unlike every other export of tyrus:os, EOL is a plain value, not a function, write EOL, not EOL(). It resolves to a fixed value when the compiler itself was built, so referencing it never involves a runtime lookup.