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.
angular-lodash
Advanced tools
A fork of angular-underscore
This module exposes lodash's API into angular app's root scope, and provides some filters from lodash.
After loading angular.js and lodash.js:
<script type="text/javascript" src="angular-lodash.js"></script>
angular.module('app', ['angular-lodash']);
<script type="text/javascript">
angular.module('example', ['angular-lodash']);
app.controller('MainCtrl', function($scope) {});
</script>
<body ng-app="example">
<div ng-controller="MainCtrl">
<!-- output unique numbers from input.. [1, 2, 3, 4, 5, 6, 7, 8] -->
<div ng-repeat="num in [1,1,2,3,4,5,5,6,6,7,7,7,8]|uniq">{{num}}</div>
</div>
</body>
<script type="text/javascript">
angular.module('example', ['angular-lodash']);
app.controller('MainCtrl', function($scope) {
$scope.exarr = [
{ 'name': 'John', 'age': 26 },
{ 'name': 'Bob', 'age': 41 },
{ 'name': 'Tom', 'age': 32 },
{ 'name': 'Ralph', 'age': 17 },
{ 'name': 'Molly', 'age': 13 }
];
});
</script>
<body ng-app="example">
<div ng-controller="MainCtrl">
<div ng-repeat="age in exarr|pluck:'age'">{{age}}</div>
</div>
</body>
<script type="text/javascript">
angular.module('example', ['angular-lodash']);
app.controller('MainCtrl', function($scope) {
$scope.exobj = {
'key1': {
'subkey1': 1
},
'key2': {
'subkey2': 2
},
'key3': {
'subkey3': 3,
'subkey31': 31
}
};
});
</script>
<body ng-app="example">
<div ng-controller="MainCtrl">
<div ng-repeat="k in exobj|keys">{{k}}</div>
</div>
</body>
FAQs
Lodash adapter for AngularJS.
The npm package angular-lodash receives a total of 78 weekly downloads. As such, angular-lodash popularity was classified as not popular.
We found that angular-lodash 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.