# browserify-ngannotate

> A browserify transform that uses ng-annotate to add dependency injection annotations to your AngularJS source code, preparing it for minification.

Latest version **2.0.0** (published 2015-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install browserify-ngannotate
pnpm add browserify-ngannotate
yarn add browserify-ngannotate
bun add browserify-ngannotate
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-11-25 |
| First published | 2013-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 56 |
| Author | Owen Smith |
| Maintainers | omsmith, olov |
| Keywords | browserify, browserify-transform, angular, ng-annotate, annotate, ngmin, ng |

## Links

- npm: https://www.npmjs.com/package/browserify-ngannotate
- Repository: https://github.com/omsmith/browserify-ngannotate
- Issues: https://github.com/omsmith/browserify-ngannotate/issues
- npm.io page: https://npm.io/package/browserify-ngannotate

## Dependencies (4)

- [clone](https://npm.io/package/clone.md) ^1.0.2
- [defaults](https://npm.io/package/defaults.md) ^1.0.3
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [ng-annotate](https://npm.io/package/ng-annotate.md) ^1.0.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2015-11-25
- 1.0.1 — 2015-06-02
- 1.0.0 — 2015-05-31
- 0.7.3 — 2015-05-08
- 0.7.2 — 2015-04-26
- 0.7.1 — 2015-02-01
- 0.7.0 — 2015-02-01
- 0.6.0 — 2015-01-18
- 0.5.0 — 2014-12-08
- 0.4.0 — 2014-11-18
- 0.3.0 — 2014-11-13
- 0.2.0 — 2014-09-16
- 0.1.0 — 2014-07-31
- 0.0.8 — 2014-06-17
- 0.0.7 — 2014-06-12
- … 5 more at https://npm.io/package/browserify-ngannotate/versions

## README

# browserify-ngannotate

[![Build Status](https://travis-ci.org/omsmith/browserify-ngannotate.svg)](https://travis-ci.org/omsmith/browserify-ngannotate) [![Coverage Status](http://img.shields.io/coveralls/omsmith/browserify-ngannotate.svg)](https://coveralls.io/r/omsmith/browserify-ngannotate)

A [browserify](http://github.com/substack/node-browserify) transform that uses [ng-annotate](https://github.com/olov/ng-annotate) to add dependency injection annotations to your AngularJS source code, preparing it for minification.

# Usage
```
browserify -t browserify-ngannotate app.js > bundle.js
```

## Options
Provided options are passed through to ng-annotate. The `add` option defaults
to `true`.

For example, to remove annotations, one could use the following:

```
browserify -t [ browserify-ngannotate --no-add --remove ] app.js > bundle.js
```

### Source maps
Sourcemapping will be enabled automatically when browserify is in `debug` mode:

```bash
browserify --debug -t browserify-ngannotate app.js > bundle.js
```

### File extensions
Define the filetypes to transform. Prevents other resouces like .json or .css from being processed, if you are including them with require().

This is done using the `--x` or `--ext` transform options:

```
browserify -t [ browserify-ngannotate --x .coffee ] app.js > bundle.js
```

The above example will only annotate .js and .coffee files, ignoring the rest.

# Install
```
npm install browserify-ngannotate --save
```

# License
MIT

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