Skip to content

bcpeinhardt/input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

input

This package provides a single function, input, that prints a prompt and then reads a user's input. Inspired by the Python function of the same name.

It is intended to work on erlang, node, deno, and bun. This package has no dependencies, not even the stdlib.

Package Version Hex Docs

gleam add input@1
import input.{input}

pub fn main() {
  let assert Ok(my_input) = input(prompt: "> ")
}

Further documentation can be found at https://hexdocs.pm/input.

About

Read user input from the terminal in Gleam

Resources

Stars

Watchers

Forks

Packages

No packages published