Skip to content

enma67/enmaline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

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

About

Get inputs from process.stdin easily!

Topics

Resources

Stars

Watchers

Forks

Contributors