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

readline-Sync for Deno

implementation of readline for deno.land

Usage

import { readline } from 'https://deno.land/x/readline_sync/mod.ts'

var name: string = readline.input(`What's your name? `)

// readline return strings values
var age = Number(readline.input(`Your age: `))

console.log(`Hello, ${name} your age is? ${age}`)