Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browserify-ngannotate

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-ngannotate

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

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-32.17%
Maintainers
2
Weekly downloads
 
Created
Source

browserify-ngannotate

Build Status Coverage Status

A browserify transform that uses 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:

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

Keywords

FAQs

Package last updated on 25 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc