Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tail_lines/mod.ts>readOffsets

🦎 Tail the last N lines of a text file
Latest
variable readOffsets
Re-export
Deprecated
import { readOffsets } from "https://deno.land/x/tail_lines@v0.5.2/mod.ts";

Return array of line feed byte offsets in reverse order

type

(file: Deno.FsFile, maxOffsets?) => Promise<number[]>