An open API service indexing awesome lists of open source software.

https://github.com/prabirshrestha/nuget-button

javascript helper for generating nuget button
https://github.com/prabirshrestha/nuget-button

Last synced: about 2 months ago
JSON representation

javascript helper for generating nuget button

Awesome Lists containing this project

README

        

# NuGet Button
Javascript helper for generating nuget.org style Install-Package buttons.

## Usage

###Add the following javascript code just before the end of the body tag.


(function () {
var nb = document.createElement('script'); nb.type = 'text/javascript'; nb.async = true;
nb.src = 'http://s.prabir.me/nuget-button/0.2.1/nuget-button.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(nb, s);
})();

###Then add the following html code to get the nuget button rendered.

#### Full Stretch with link (default)

Install-Package Facebook

#### Full Stretch with link disabled (same as seen in nuget.org)

Install-Package AzureToolkit

#### Fixed Width

Install-Package SimpleJson

#### Minimal Required Width

Install-Package FluentHttp.Core

#### Custom size with minimal required width

Install-Package FluentHttp.Core

### Redirect to custom link

Install-Package Facebook

# License
Copyright 2011, Prabir Shrestha

Dual licensed under the MIT or GPL Version 2 licenses.