enma67/enmaline
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Enmaline
by enma67
“Get inputs from process.stdin easily!”
Simple utils for getting inputs from stdin asynchronously and synchronously.
Prerequisites:
- Nodejs
How to use:
- Go to the Enmaline directory.
- Require the package with:
- const enmaline = require("./index.js");
How to get inputs:
- Asynchronously:
- const enmaline = require("./index.js");
- (async () => {
- const input = await enmaline.getInput();
- console.log(input);
- })();
- Synchronously:
- const enmaline = require("./index.js");
- enmaline.getInputSync((input) => {
- console.log(input);
- });
- enma67