2020-05-11 12:20:46 +02:00

35 lines
553 B
TypeScript

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