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.
angularplus
Advanced tools
"AngularPlus (ngplus) contains a set of helpers, directives and services for AngularJS, under MIT license."
AngularPlus (ngplus) contains a set of helpers, directives and services for AngularJS, under MIT license.
Version 0.9.2
Authors: John Papa and Dan Wahlin
Use, reproduction, distribution, and modification of this code is subject to the terms and conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
#ngplusOverlay Directive
The ngplusOverlay directive intercepts $http and jQuery XHR calls and displays and overlay. To get started using it follows these steps:
ngplus
module:ngplus
module:angular.module('app', ['ngRoute', 'ngAnimate', 'ngplus']);
.ngplus-overlay-background {
top: 0px;
left: 0px;
padding-left: 100px;
position: absolute;
z-index: 10000;
height: 100%;
width: 100%;
background-color: #808080;
opacity: 0.2;
}
.ngplus-overlay-content {
position: absolute;
/*border: 1px solid #000;*/
/*background-color: #fff;*/
font-weight: bold;
height: 100px;
width: 300px;
height: 15em;
width: 20em;
z-index: 10000;
text-align: center;
}
/*Optional Animations*/
.dissolve-animation.ng-hide-remove,
.dissolve-animation.ng-hide-add {
display: inline !important;
-webkit-transition: 0.5s linear all;
-moz-transition: 0.5s linear all;
-o-transition: 0.5s linear all;
transition: 0.5s linear all;
}
.dissolve-animation.ng-hide-remove.ng-hide-remove-active,
.dissolve-animation.ng-hide-add {
opacity: 1;
}
.dissolve-animation.ng-hide-add.ng-hide-add-active,
.dissolve-animation.ng-hide-remove {
opacity: 0;
}
<div ngplus-overlay
ngplus-overlay-delay-in="50"
ngplus-overlay-delay-out="700"
ngplus-overlay-animation="dissolve-animation">
<img src="../../content/images/busy.gif"/>
Optional loading message or HTML content goes here
</div>
Once you have the code locally, install Node.js, open a command-prompt and run:
node server.js
ngplusOverlay directive in action.
Note: This directive was created for a prototype project and has only been tested with Chrome and IE10+. It's intended to provide a starting point, evolve over time (please contribute!), and hopefully save someone some time.
###Options
ngplus-overlay-delay-in="50"
indicates the number of milliseconds to wait before showing the overlay. This is useful so we do not have a flicker for super short XHR. Default is 500 ms.ngplus-overlay-delay-out="700"
indicates the number of milliseconds to keep the overlay around after the last XHR has completed. Default is 500 ms.ngplus-overlay-animation="dissolve-animation"
indicates the CSS animation to apply. Must be an animation that supports the AngularJS standard for ngShow/ngHide. This is an optional setting.FAQs
"AngularPlus (ngplus) contains a set of helpers, directives and services for AngularJS, under MIT license."
The npm package angularplus receives a total of 26 weekly downloads. As such, angularplus popularity was classified as not popular.
We found that angularplus 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.