IonicaBizau / promptify

An easy-to-use prompt for Node.js.
MIT License
1 stars 1 forks source link
hacktoberfest

promptify

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

An easy-to-use prompt for Node.js.

:cloud: Installation

# Using npm
npm install --save promptify

# Using yarn
yarn add promptify

:clipboard: Example

const promptify = require("promptify");

let name = promptify("Enter your name");
console.log(`Hey, ${name}!`);

let pass = promptify("Enter your password", {
    char: "*"
});
console.log(`You entered: ${pass}`);

:question: Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. :bug:
  3. For direct and quick help, you can use Codementor. :rocket:

:memo: Documentation

Promptify(conf)

Creates a new Promptify. In most of the cases, there will be one such instance per process.

Params

Return

sync(message, defMsg, options)

Synchronous version of the prompt.

Params

Return

promptify()

Prompt a message to the user. The arguments are passed to the sync method.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

Thanks! :heart:

:cake: Thanks

:dizzy: Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

:scroll: License

MIT © Ionică Bizău