cb-badges
The definitive collection of badges for rendering
badges
The definitive collection of badges for rendering
Install
npm
- Install:
npm install --save cb-badges
- Require:
require('cb-badges')
jspm
This project provides its type information via inline JSDoc Comments. To make use of this in TypeScript, set your maxNodeModuleJsDepth
compiler option to 5
or thereabouts. You can accomlish this via your tsconfig.json
file like so:
Usage
// Listing of badges to outputconst list =// Custom Badges'badge' image: 'image' alt: 'alt''badge' image: 'image' alt: 'alt' url: 'url' title: 'title''shields' left: 'left' right: 'right' alt: 'alt' url: 'url' title: 'title''shields' left: 'left' right: 'right' color: 'red' alt: 'alt' url: 'url' title: 'title'// Configuration for the badgesconst config =// Options for rendering the badgesconst options =// Filter Category// When set to a string, will only render badges from the list that of the specified category// Values can be 'development', 'testing', 'funding', or 'social'// E.g. to render only funding badges, set to 'funding'filterCategory: false// Filter Scripts// When true, do not render any badges from the list that are scriptsfilterScripts: false// Render the badges to a stringconst result =// Output the resultconsole
Backers
Maintainers
These amazing people are maintaining this project:
Sponsors
Contributors
These amazing people have contributed code to this project: