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

std/node/_readline.mjs>clearLine

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function clearLine
Re-export
import { clearLine } from "https://deno.land/std@0.175.0/node/_readline.mjs";

clears the current line the cursor is on: -1 for left of the cursor +1 for right of the cursor 0 for the entire line

Parameters

stream
dir
callback