-
Notifications
You must be signed in to change notification settings - Fork 3
/
ReadMe.js
33 lines (33 loc) · 1.42 KB
/
ReadMe.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const generateReadme = (answers, githubInfo) => {
return `
<h1>${answers.projectName}</h1>
<p>${answers.description}</p>
<h2>Table of Contents</h2>
<ul>
<li><a href="#Installation">Installation</a></li>
<li><a href="#Usage">Usage</a></li>
<li><a href="#License">License</a></li>
<li><a href="#Contributing">Contributing</a></li>
<li><a href="#Tests">Tests</a></li>
<li><a href="#Questions">Questions</a></li>
</ul>
<h2 id="Installation">Installation</h2>
<p>${answers.install}</p>
<h2 id="Usage">Usage</h2>
<p>${answers.usage}</p>
<h2 id="License">License</h2>
<p>Licensed under the<a href="./README.md">${answers.license}</a></p>
<h2 id="Contributing">Contributing</h2>
<p>${answers.contributing}</p>
<h2 id="Tests">Tests</h2>
<h3>To test this project, follow these directions:</h3>
<p>${answers.tests}</p>
<h2 id="Questions">Questions</h2>
<p style="strong">Any questions regarding this project, contact ${githubInfo.email} directly.</p>
<img src="${githubInfo.avatar_url}" alt="git hub profile picture" height="225" width="250">
<img src="https://img.shields.io/badge/Node-12.16.3-brightgreen">
<img src="https://img.shields.io/badge/-JavaScript-brightgreen">
<img src="https://img.shields.io/github/followers/denzgrant?label=follow&style=social">
`;
}
module.exports = generateReadme;