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.
angular-linkify
Advanced tools
Angular filter, directive, and service to linkify text. As of v0.3.0, angular-linkify works for twitter/github mentions, twitter hashtags, and basic urls.
bower install angular-linkify --save
Inject module into your application
angular.module('YourApp', ['linkify']);
Use as a AngularJS Filter or AngularJS Directive
<!-- As a filter -->
<div ng-controller="SomeCtrl">
<div ng-bind-html-unsave="someValue | linkify"></div> <!-- linkified!! -->
</div>
<!-- As a filter, with twitter parsing -->
<div ng-controller="SomeCtrl">
<div ng-bind-html-unsave="someValue | linkify:'twitter'"></div> <!-- linkified!! -->
</div>
<!-- As a directive, no twitter -->
<div ng-bind="someModel" linkify></div>
<!-- As a directive, with twitter parsing -->
<div ng-bind="someModel" linkify="twitter"></div>
Inject as a AngularJS Service
// Injected into controller
angular.module('someModule').controller('SomeCtrl', function ($scope, linkify) {
var text = "@scottcorgan and http://github.com";
// Twitter
$scope.text = linkify.twitter(text);
// outputs: <a href="https://twitter.com/scottcorgan" target="_blank">scottcorgan</a> and <a href="http://github.com" target="_blank">http://github.com</a>
// Github
$scope.text = linkify.github(text);
// outputs: <a href="https://github.com/scottcorgan" target="_blank">scottcorgan</a> and <a href="http://github.com" target="_blank">http://github.com</a>
});
grunt
FAQs
Angular filter to linkify urls, "@" usernames, and hashtags.
The npm package angular-linkify receives a total of 652 weekly downloads. As such, angular-linkify popularity was classified as not popular.
We found that angular-linkify 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.