Skip to content

Simple, small, zero dependency input function similar to the one in Python.

License

Notifications You must be signed in to change notification settings

sparrowsl/pynput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pynput

Simple, small, easy and zero dependency input function similar to the one in Python.

Motivation

I wanted a simple way to accept user input from terminal, especially one closer to python or a library without too much dependencies. and also learn how to build a library I could use when needed.

Installation

Install pynput with npm

npm i pynput

Usage/Examples

import { input } from "pynput"

const name = await input("What is your name? ") // joe

console.log(name) // -> joe

Contributing

Contributions and pull requests are always welcome!

Acknowledgements

Inspired by Python's input built-in function.

License

MIT

About

Simple, small, zero dependency input function similar to the one in Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published