From c661d85527d0ee7ff545e3a6cf06e8a69e4a1bbc Mon Sep 17 00:00:00 2001 From: duydnguyen07 Date: Sun, 14 Oct 2018 19:13:12 +0200 Subject: [PATCH] Update README.md (#46) * Update README.md Added Javascript variant to usage guide * Update README.md * Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index bdac4877..595b5981 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,14 @@ import cli from 'cli-ux' cli.prompt('What is your name?') ``` +JavaScript: + +```javascript +const {cli} = require('cli-ux') + +cli.prompt('What is your name?') +``` + # cli.prompt() Prompt for user input.