badges
The definitive collection of badges for rendering
Install
- Install:
npm install --save badges
- Use:
require('badges')
- Install:
npm install --save badges
- Use:
require('badges')
- CDN URL:
//wzrd.in/bundle/badges@1.0.0
- Install:
ender add badges
- Use:
require('badges')
Usage
const list = [
['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'}],
'---',
'npmversion',
'npmdownloads',
'daviddm',
'daviddmdev',
'---',
'saucelabsbm',
'saucelabs',
'travisci',
'codeship',
'coveralls',
'waffle',
'---',
'patreon',
'gratipay',
'flattr',
'paypal',
'bitcoin',
'wishlist',
'---',
'slackinscript',
'slackin',
'gabeacon',
'googleplusone',
'redditsubmit',
'hackernewssubmit',
'facebooklike',
'facebookfollow',
'twittertweet',
'twitterfollow',
'githubfollow',
'githubstar',
'quorafollow'
]
const config = {
npmPackageName: 'getbadges',
saucelabsUsername: 'bevry',
saucelabsAuthToken: '123',
codeshipProjectUUID: '123',
codeshipProjectID: '123',
githubSlug: 'bevry/getbadges',
patreonUsername: 'bevry',
gratipayUsername: 'bevry',
flattrCode: '344188/balupton-on-Flattr',
paypalURL: 'https://paypal.me/bevry',
paypalButtonID: 'QB8GQPZAH84N6',
paypalUsername: 'bevry',
bitcoinURL: 'https://bevry.me/bitcoin',
wishlistURL: 'https://bevry.me/wishlist',
slackinURL: 'https://slack.bevry.me',
gaTrackingID: 'UA-XXXXX-XX',
homepage: 'http://bevry.me',
facebookApplicationID: '123123',
facebookUsername: 'balupton',
twitterUsername: 'bevryme',
githubUsername: 'balupton',
quoraUsername: 'Benjamin-Lupton',
quoraRealname: 'Benjamin Arthur Lupton',
}
const options = {
filterCategory: false
filterScripts: false
}
const result = require('badges').renderBadges(list, config, options)
console.log(result)
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
and licensed under: