# grunt-nugetter

> Download nuget packages

Latest version **0.5.5** (published 2016-02-24) · 0 weekly downloads

## Install

```sh
npm install grunt-nugetter
pnpm add grunt-nugetter
yarn add grunt-nugetter
bun add grunt-nugetter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.5 |
| Published | 2016-02-24 |
| First published | 2015-02-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bobby Earl |
| Maintainers | blackbaud-bobbyearl |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-nugetter
- Repository: https://github.com/Blackbaud-BobbyEarl/grunt-nugetter
- Issues: https://github.com/Blackbaud-BobbyEarl/grunt-nugetter/issues
- npm.io page: https://npm.io/package/grunt-nugetter

## Dependencies (5)

- [async](https://npm.io/package/async.md) ^0.9.0
- [jszip](https://npm.io/package/jszip.md) ^2.2.2
- [merge](https://npm.io/package/merge.md) ^1.2.0
- [request](https://npm.io/package/request.md) ^2.47.0
- [underscore.string](https://npm.io/package/underscore.string.md) ^3.0.3

## Recent versions

- 0.5.5 (latest) — 2016-02-24
- 0.5.4 — 2015-02-12
- 0.5.3 — 2015-02-12
- 0.5.2 — 2015-02-12
- 0.5.1 — 2015-02-12
- 0.5.0 — 2015-02-11
- 0.4.0 — 2015-02-11
- 0.3.0 — 2015-02-10
- 0.2.0 — 2015-02-10
- 0.1.0 — 2015-02-10

## README

# grunt-nugetter

> Download nuget packages

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-nugetter --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-nugetter');
```

## The "nugetter" task

### Overview
In your project's Gruntfile, add a section named `nugetter` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  nugetter: {
    options: {
      // Task-specific options go here.
    }
  },
});
```

### Options

#### options.id
Type: `String`
Default value: `''`

The id of the nuget package you want to download.

#### options.version
Type: `String`
Default value: `''`

The optional version you would like to download.  If not given, downloads latest.

#### options.server
Type: `String`
Default value: `'http://nuget.org/api/v2/'`

Allows you to point to internal nuget server.

#### options.dest
Type: `String`
Default value: `'%(id)s.zip'`

Where the unzipped files should be stored.  Option supports referencing other options as a named parameter.

#### options.tmp
Type: `String`
Default value: `'%(id)s.zip'`

Where the package sholud be temporarily stored.  Option supports referencing other options as a named parameter.  File is automatically deleted if tmpDelete is true.

#### options.tmpDelete
Type: `Boolean`
Default value: `true`

Whether the temporary package is automatically deleted.

### Usage Examples

#### Default Options
This is the most basic example, using default locations and server to download the jQuery NuGet package.

```js
grunt.initConfig({
  nugetter: {
    options: {
      packages: [
        {
          id: 'jQuery'
        }
      ]
    }
  }
});
```

#### Custom Options
This example shows how to use a custom server, custom destination, and multiple packages.

```js
grunt.initConfig({
  nugetter: {
    options: {
      packages: [
        {
          id: 'jQuery'
        },
        {
          id: 'CustomPackage',
          dest: '_source/nuget/%(id)s'
          server: 'http://my-custom-server/api/'
        }
      ]
    }
  },
});
```

---
_Source: https://npm.io/package/grunt-nugetter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
