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-moment-service
Advanced tools
AngularJS Wrapper for Moment.js whithout registering it in the global scope.
Install angular-momentjs-service via bower:
bower install --save angular-momentjs-service
Include angular-momentjs-service into your project.
<script src="angular-momentjs-service.min.js"></script>
Add angular-momentjs
module in the dependencies of a angular module:
angular.module('exampleApp', ['angular-momentjs'])
Inject the MomentJS service into a controller, a directive, etc:
.controller('ExampleCtrl', ['$scope','MomentJS', function($scope, moment){
$scope.now = moment();
}])
Use the full MomentJS API as you wish.
Soon...
I am very glad to see this project living with pull requests.
Copyright (c) 2014 Igor Rafael
Licensed under the MIT license.
FAQs
AngularJS Service for dependency injection of moment.js
The npm package angular-moment-service receives a total of 0 weekly downloads. As such, angular-moment-service popularity was classified as not popular.
We found that angular-moment-service 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.