Skip to main content
Module

std/fs/eol.ts>EOL

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable EOL
import { EOL } from "https://deno.land/std@0.218.0/fs/eol.ts";

End-of-line character evaluated for the current platform.

Examples

Example 1

import { EOL } from "https://deno.land/std@0.218.0/fs/eol.ts";

EOL; // Returns "\n" on POSIX platforms or "\r\n" on Windows

type

"\n" | "\r\n"