35 lines
551 B
TypeScript
Raw Normal View History

2020-05-11 11:33:34 +02:00
/* eslint-disable max-len */
export function get_readme (
software: string,
description: string,
dev: boolean,
license: string,
author: string
): string {
2020-05-11 12:18:39 +02:00
const uri = encodeURIComponent (software);
2020-05-11 11:33:34 +02:00
return `# ${software}
2020-05-11 12:20:46 +02:00
[![Package quality](https://packagequality.com/badge/${uri})](https://packagequality.com/#?package=${uri})
2020-05-11 11:33:34 +02:00
2020-05-11 12:21:18 +02:00
${description}
2020-05-11 11:33:34 +02:00
## Installation
npm:
> npm i --save${dev ? '-dev' : ''} ${software}
yarn:
> yarn add ${dev ? '--dev' : ''} ${software}
## Usage
TODO: Add usage
## License
${license} © ${author}
`;
}