Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gulp-ng-annotate
Advanced tools
Add angularjs dependency injection annotations with ng-annotate
$ npm install --save-dev gulp-ng-annotate
var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotate');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(ngAnnotate())
.pipe(gulp.dest('dist'));
});
You can pass any of the ng-annotate options as an object:
{
remove: true,
add: true,
single_quotes: true
}
add: true
option is implied by default unless remove
is set to true.
Error in plugin 'gulp-ng-annotate': error: couldn't process source due to parse error
That's not a gulp-ng-annotate
or ng-annotate
error: you passed the invalid JavaScript code to the plugin. Check your source code near the specified place.
ng-annotate
Make sure you are using the latest version of gulp-ng-annotate
. Also try to reinstall/update it to get the latest suitable version of ng-annotate
from npm.
Report it to ng-annotate's bugtracker. gulp-ng-annotate
is just a wrapper around ng-annotate
.
gulp-ng-annotate - Add angularjs dependency injection annotations with ng-annotate
Written in 2014-2015 by Kagami Hiiragi kagami@genshiken.org and gulp-ng-annotate contributors
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.
FAQs
Add angularjs dependency injection annotations with ng-annotate
We found that gulp-ng-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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.