[JavaScript] - How to create a GitHub repository generator | SheCodes

[JavaScript] - How to create a GitHub repository generator using JavaScript

Learn how to create a GitHub repository generator using JavaScript to prompt users for their username and repository title.

πŸ‘©β€πŸ’» HTML, CSS and JavaScript Code instructions

//Packages needed for this application const inquirer = require('inquirer'); const fs = require('fs') const generateMarkdown = require('./utils/generateMarkdown') //Function to Init app and Questions function init() { inquirer .prompt([ { type: 'input', message: 'What is your Github username?', name: 'username', }, { type: 'input', message: 'What repository are you creating?', name: 'title', }, ]) .then((response) => { console.log(response) }); } function writeToFile(fileName, data) { fs.writeFile(fileName, data, (error) => { if (error) { console.log('Try again!'); } else { console.log('Success!'); } }); } init()

More coding questions about JavaScript

πŸ‘©β€πŸ’» Technical question

how do i loop through an array and object until the max question has been reached?

πŸ‘©β€πŸ’» Technical question

how to display milliseconds timer in realtime with javascript

πŸ‘©β€πŸ’» Technical question

on a page with just a button, how can I change the color of the whole background? It should be responsive

πŸ‘©β€πŸ’» HTML, CSS and JavaScript Code instructions

Asked 9 days ago in JavaScript by Sarah-Leigh

Log the number of milliseconds in the current time

πŸ‘©β€πŸ’» Technical question

how to return a random object from an array

πŸ‘©β€πŸ’» Technical question

how to remove duplicate characters in a string

πŸ‘©β€πŸ’» Technical question

how to display the number of milliseconds only the last 3 digits

πŸ‘©β€πŸ’» Technical question

reverse a string

πŸ‘©β€πŸ’» Technical question

how do i show only the first option in the loop through an array?

πŸ‘©β€πŸ’» Technical question

how to sort letters in a string in alphabetical order

πŸ‘©β€πŸ’» Technical question

can you explain to me the .map function please

πŸ‘©β€πŸ’» Technical question

how can i add a class to an element via js selectors?

πŸ‘©β€πŸ’» Technical question

what are objects in JavaScript

πŸ‘©β€πŸ’» Technical question

How to delete an upload in your github

πŸ‘©β€πŸ’» Technical question

Asked 13 days ago in JavaScript by Sarah-Leigh

what is the purpose of using console log in javascript?

πŸ‘©β€πŸ’» Technical question

How to create an array of 3 cities with a few properties and console log each city temperature

πŸ‘©β€πŸ’» Technical question

what is the difference between an object and an array

πŸ‘©β€πŸ’» Technical question

difference between an object and an array

πŸ‘©β€πŸ’» Technical question

how I can make a five minute timer in java script?

πŸ‘©β€πŸ’» Technical question

for each in java script

πŸ‘©β€πŸ’» Technical question

else if in java script

πŸ‘©β€πŸ’» Technical question

str length

πŸ‘©β€πŸ’» Technical question

loop through the str

πŸ‘©β€πŸ’» Technical question

capitalize str

πŸ‘©β€πŸ’» Technical question

append with strings

πŸ‘©β€πŸ’» Technical question

string length in java script

πŸ‘©β€πŸ’» Technical question

string length in JS

πŸ‘©β€πŸ’» Technical question

split () and join() java script

πŸ‘©β€πŸ’» Technical question

how can i use the reverse() and the join() methods together on an array?

πŸ‘©β€πŸ’» Technical question

Asked 17 days ago in JavaScript by Nomthandazo

How can I loop an object in javascript

πŸ‘©β€πŸ’» Technical question

Asked 17 days ago in JavaScript by Amanda Ntumba

how to add two alerts on one prompt in javascript for html

πŸ‘©β€πŸ’» Technical question

what's the not equal comparison operator?

πŸ‘©β€πŸ’» Technical question

what is \r\n

πŸ‘©β€πŸ’» Technical question

how to use ".innerhtml"

πŸ‘©β€πŸ’» Technical question

what is greater sign in javascript?

πŸ‘©β€πŸ’» JavaScript Code instructions

greater than sign in javascript and how to use it

πŸ‘©β€πŸ’» Technical question

what does head mean in the context of git?

πŸ‘©β€πŸ’» Technical question

what's the difference between git fetch and git pull?

πŸ‘©β€πŸ’» Technical question

what's square bracket notation in js?

πŸ‘©β€πŸ’» Technical question

what's DOM?

πŸ‘©β€πŸ’» Technical question

What does textcontent mean in javascript

πŸ‘©β€πŸ’» Technical question

What is the logical AND operator in JavaScript?

πŸ‘©β€πŸ’» Technical question

What does parse float mean in JavaScript

πŸ‘©β€πŸ’» Technical question

what are break statements in javascript

πŸ‘©β€πŸ’» Technical question

what does .push mean ?

πŸ‘©β€πŸ’» Technical question

What does console.log mean in JavaScript?

πŸ‘©β€πŸ’» Technical question

how to use trim in js

πŸ‘©β€πŸ’» Technical question

What is const

πŸ‘©β€πŸ’» Technical question

Math functions in js

πŸ‘©β€πŸ’» Technical question

what does setInterval(() mean?