input-dot-js

1.1.3 • Public • Published

Hello , this is a module for receives input

How to use :

  • install
npm i input-dot-js
  • config :
const input = require("input-dot-js");
  • how to get input :
let answer = await input("what is your name ?");
  • example uses :
// run.js file :
const input = require("input-dot-js");

(async () => {
  let name = await input("what is your name ?");
  let family = await input("what is your lastName ?");
  console.log(`your full name is ${name} ${family}`);
})();

// node run.js
// - what is your name ?
// + hamid
// - what is your lastName ?
// + ghahremani
// - your full name is hamid ghahremani

Package Sidebar

Install

npm i input-dot-js

Weekly Downloads

0

Version

1.1.3

License

Apache-2.0

Unpacked Size

12.8 kB

Total Files

4

Last publish

Collaborators

  • hamidrezadev