
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
angular-picturify
Advanced tools
Angular filter, directive, and service to picturify image urls in a text.
Angular filter, directive, and service to picturify image urls in a text. As of v0.0.3, angular-picturify works for obvious image urls and base64 data. No content-type verification (future versions), only regex checking.
npm install angular-picturify --save
Inject module into your application
//require('angular.picturify'); for browserify/webpack
//or
//<script src="node_modules/angular-picturify/dist/angular.picturify.js"></script>
angular.module('YourApp', ['picturify']);
Use as a AngularJS Filter
<!-- As a filer -->
<div ng-bind-html="someModel | picturify"></div>
<!-- As a filter, with opts -->
<div ng-bind-html="someModel | picturify:'_blank':'chat-img':3"></div>
<!-- target="_blank" class="chat-img" -->
<div ng-bind-html="someModel | picturify:'_parent':200:3"></div>
<!-- target="_parent" width="200" -->
Use as a AngularJS Directive
<!-- As a directive -->
<div ng-bind="someModel" picturify></div>
<!-- As a directive, with opts -->
<div ng-bind="someModel" picturify="{class: 'chat-img', amount: 2, target: '_blank'}"></div>
Inject as a AngularJS Service
// Injected into controller
angular.module('someModule').controller('SomeCtrl', function ($scope, picturify) {
var text = "https://angularjs.org/img/AngularJS-large.png";
$scope.text = picturify.filter(text));
// outputs: <a href="https://angularjs.org/img/AngularJS-large.png" target="_blank"><img src="https://angularjs.org/img/AngularJS-large.png"/></a>
});
*The disambiguation lies on a simple 'string or number' verification
npm install && npm run webpack
FAQs
Angular filter, directive, and service to picturify image urls in a text.
The npm package angular-picturify receives a total of 0 weekly downloads. As such, angular-picturify popularity was classified as not popular.
We found that angular-picturify 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.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.