UNPKG

statistician

Version:

Create and compare files stats, and webpack bundle stats

8 lines (7 loc) 268 B
/** * Create a badge tag with text and colour * @param {String} string * @param {String} color * @return {String} */ module.exports = (string, color) => `![${string}](https://img.shields.io/badge/-${encodeURIComponent(string)}-${color}.svg?style=flat-square)`;