-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add bin/brain-games.js package-lock.json package.json src/
- Loading branch information
1 parent
bfece18
commit 4b03312
Showing
4 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
console.log('Welcome to the Brain Games!'); | ||
|
||
import readlineSync from 'readline-sync'; | ||
import { name } from 'src/cli.js' | ||
|
||
const name = readlineSync.question('May I have your name? John'); | ||
name(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
console.log('Welcome to the Brain Games!'); | ||
|
||
export const name = readlineSync.question('May I have your name?'); | ||
console.log('Hello ' + name + '!'); |