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

std/fs/eol.ts>detect

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

Detect the EOL character for string input. returns null if no newline

Parameters

content: string

Returns

EOL | null