<commit_before>[![Build Status](https://travis-ci.org/phated/gulp-wrap-amd.png?branch=master)](https://travis-ci.org/phated/gulp-wrap-amd)

## Information

<table>
<tr>
<td>Package</td><td>gulp-wrap-amd</td>
</tr>
<tr>
<td>Description</td>
<td>Wrap files with an AMD wrapper</td>
</tr>
<tr>
<td>Node Version</td>
<td>≥ 0.8</td>
</tr>
</table>

## Usage

Wrap the contents of the file, AMD module will return the entire contents

```javascript
var wrap = require('gulp-wrap-amd');

gulp.task('wrap', function() {
  gulp.files('./lib/*.js')
    .pipe(wrap())
    .pipe(gulp.folder('./dist/'))
});
```

Wrap the contents, with custom dependencies, callback params, and variable to return (exports)

```javascript
var wrap = require('gulp-wrap-amd');

gulp.task('wrap', function() {
  gulp.files('./lib/*.js')
    .pipe(wrap({
      deps: ['jade'], // dependency array
      params: ['jade'], // params for callback
      exports: 'jade' // variable to return
    }))
    .pipe(gulp.folder('./dist/'))
});
```

## LICENSE

(MIT License)

> Copyright (c) 2013 <NAME>
>
> Permission is hereby granted, free of charge, to any person obtaining
> a copy of this software and associated documentation files (the
> "Software"), to deal in the Software without restriction, including
> without limitation the rights to use, copy, modify, merge, publish,
> distribute, sublicense, and/or sell copies of the Software, and to
> permit persons to whom the Software is furnished to do so, subject to
> the following conditions:
>
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.
><commit_msg>update docs for gulp 1.0.0 syntax<commit_after>[![Build Status](https://travis-ci.org/phated/gulp-wrap-amd.png?branch=master)](https://travis-ci.org/phated/gulp-wrap-amd)

## Information

<table>
<tr>
<td>Package</td><td>gulp-wrap-amd</td>
</tr>
<tr>
<td>Description</td>
<td>Wrap files with an AMD wrapper</td>
</tr>
<tr>
<td>Node Version</td>
<td>≥ 0.8</td>
</tr>
</table>

## Usage

Wrap the contents of the file, AMD module will return the entire contents

```javascript
var wrap = require('gulp-wrap-amd');

gulp.task('wrap', function() {
  gulp.src('./lib/*.js')
    .pipe(wrap())
    .pipe(gulp.folder('./dist/'))
});
```

Wrap the contents, with custom dependencies, callback params, and variable to return (exports)

```javascript
var wrap = require('gulp-wrap-amd');

gulp.task('wrap', function() {
  gulp.src('./lib/*.js')
    .pipe(wrap({
      deps: ['jade'], // dependency array
      params: ['jade'], // params for callback
      exports: 'jade' // variable to return
    }))
    .pipe(gulp.folder('./dist/'))
});
```

## LICENSE

(MIT License)

> Copyright (c) 2013 <NAME>
>
> Permission is hereby granted, free of charge, to any person obtaining
> a copy of this software and associated documentation files (the
> "Software"), to deal in the Software without restriction, including
> without limitation the rights to use, copy, modify, merge, publish,
> distribute, sublicense, and/or sell copies of the Software, and to
> permit persons to whom the Software is furnished to do so, subject to
> the following conditions:
>
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.
>
{'fraction_non_alphanumeric': 0.15855855855855855, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 4.108895705521473, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 71, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '844432', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1039, 'n_words': 355}