This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
derby-ui-github-buttons with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A Derby component library for the Unofficial Github Buttons. Refer to their documentation for more details.
$ npm install derby-ui-github-buttons
In "lib/app/index.js" include:
In your view include:
<ghbtns:button user="psirenny" repo="derby-ui-github-buttons" type="watch" width="100">
or better yet:
<ghbtns:button giturl="https://github.com/psirenny/derby-ui-github-buttons.git" type="watch" width="100">
countTrue if the count should be shown.
domainThe domain hosting the .html file. Defaults to ghbtns.com.
filenameThe name of the .html file. Defaults to github-btn.html.
fileurlThe url to the .html file. This will override
giturlThe url to the repository. This will override
heightThe height of the button. The default value depends on the button size.
repoThe name of the repository. Required
secureTrue if the url should be in https. Defaults to false.
sizeThe size of the button.
typeThe type of button. Required
userThe username of the repository owner. Required
widthThe width of the button.