pyinput
Python-like input module for Node.js
Table of Contents
Install
npm install pyinput # Use yarn if you prefer to use yarn
Usage
Example:
// This is in example folderconst pyInput = ; const run = async { let done = false; while !done const num = await ; const numParsed = ; if console; else console; done = true; }; ;
API
pyInput(...messages)
-> {Promise.<string>}
Python-like input
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
messages | any |
<repeatable> |
Messages that will prints out |
Returns:
Recevied input
Type: Promise.<string>
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2020 Helloyunho