0.3.1 • Published 11 months ago

pynput v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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 much dependencies. and also learn how to build a library I could use when needed.

Installation

Install pynput with npm (or any package manager)

npm i pynput

Usage/Examples

import { input } from "pynput"

const name = await input("Name: ") // joe

console.log(name) // -> joe
// converting an int/float
import { input } from "pynput"

const age = await input("Age: ", {convert: "int"}) // 10

console.log(10) // -> 10

Contributing

Contributions and pull requests are always welcome!

Acknowledgements

Inspired by Python's input built-in function.

License

MIT

0.3.0

11 months ago

0.3.1

11 months ago

0.2.5

11 months ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago