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

x/deno/std/fs/eol.ts>detect

A modern runtime for JavaScript and TypeScript.
Go to Latest
function detect
import { detect } from "https://deno.land/x/deno@v0.28.0/std/fs/eol.ts";

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

Parameters

content: string

Returns

EOL | null