Skip to main content
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@v0.34.0/fs/eol.ts";

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

Parameters

content: string

Returns

EOL | null