Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
babel-plugin-angularjs-annotate
Advanced tools
Babel plugin to add angularjs dependency injection annotations
Experimental fork of ng-annotate.
Work in progress. Do not use this for anything serious. Stick with ng-annotate or babel-ng-annotate for now.
This project/experiment does not seek to replace ng-annotate. However, it does seek to provide similar functionality for Angular 1.x developers who are already using Babel and/or coding in ES6.
Because of some of the limitations presented by Babel's transformation process, this project does not aim to achieve feature parity, or provide identical output to ng-annotate. Notably, Babel does not preserve formatting and indentations like ng-annotate does.
Initially, I had hoped to make very few modifications to the upstream sources, in the hopes of eventually merging babel support directly into ng-annotate. Unfortunately, Babylon appears to have diverged too far from Acorn to make that goal realistic. (I would love to be wrong here, and would welcome contributions that close the gap between the two projects!)
That being said, this is my short-term todo list:
To test this mess of an experiment, create a .babelrc file for your sources
{
"presets": ["es2015"],
"plugins": ["path/to/babel-ng-annotate"]
}
And try it out:
babel myCode.js
npm test
MIT
, see LICENSE file.
This project is a fork of ng-annotate, which was written by Olov Lassus with the kind help by contributors. Follow @olov on Twitter for updates about ng-annotate.
v0.1.0 2016-04-15
FAQs
Babel plugin to add angularjs dependency injection annotations
The npm package babel-plugin-angularjs-annotate receives a total of 105,265 weekly downloads. As such, babel-plugin-angularjs-annotate popularity was classified as popular.
We found that babel-plugin-angularjs-annotate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.