New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

itminus-image-rowlayout

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itminus-image-rowlayout

a tiny library for images shown in rows

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

How to use

// raw images
var images= [
    {src:"http://1.jpg",width:100 , height:100},
    {src:"http://2.jpg",width:200 , height:200},
    {src:"http://3.jpg",width:300 , height:300},
    {src:"http://4.jpg",width:400 , height:200},
    {src:"http://5.jpg",width:500 , height:300},
    {src:"http://6.jpg",width:600 , height:300},
    {src:"http://7.jpg",width:100 , height:300},
    {src:"http://8.jpg",width:200 , height:300},
];

var app = document.getElementById("app");
var rowlayout= new ImagesLayout.RowLayout(images,app.clientWidth,240);
rowlayout.render().forEach(r => app.appendChild(r));

// load more
setTimeout(() => {
    rowlayout.renderMoreImages(images).forEach(r=>app.appendChild(r))
}, 8000);

FAQs

Package last updated on 16 Jan 2019

Did you know?

Socket

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.

Install

Related posts