Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-angular-esmodules-filesort
Advanced tools
Automatically sort AngularJS app files depending on module definitions and usage and also ES6 import/exports
This plugin is a fork of gulp-angular-filesort which adds support for additional file sorting logic based on ES6 import and exports.
If the following conditions are true, you might want to use this plugin:
NOTE: In order to be able to use es6 import/exports without a bundler, you need to use babel-plugin-globals to convert import/exports to read/writes from/to a global object (aka namespace)
Use something like Browserify or Webpack instead!
Automatically sort AngularJS app files depending on module definitions and usage
Used in conjunction with gulp-inject
to inject your AngularJS application files (scripts) in a correct order, to get rid of all Uncaught Error: [$injector:modulerr]
. To work correctly, each angular file needs to have a uniquely named module and setter syntax (with the brackets), i.e. angular.module('myModule', [])
.
Install gulp-angular-esmodules-filesort
as a development dependency:
npm install --save-dev gulp-angular-esmodules-filesort
gulpfile.js
:var angularFilesort = require('gulp-angular-esmodules-filesort'),
inject = require('gulp-inject');
gulp.src('./src/app/index.html')
.pipe(inject(
gulp.src(['./src/app/**/*.js']).pipe(angularFilesort())
))
.pipe(gulp.dest('./build'));
NOTE Do not use the read
option for gulp.src
! This plugin analyzes the contents of each file to determine sort order.
FAQs
Automatically sort AngularJS app files depending on module definitions and usage and also ES6 import/exports
We found that gulp-angular-esmodules-filesort 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.