
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Bin-packing layout library
See packery.metafizzy.co for complete docs and demos
Link directly to Packery files on unpkg.
<script src="https://unpkg.com/packery@3/dist/packery.pkgd.js"></script>
<!-- or -->
<script src="https://unpkg.com/packery@3/dist/packery.pkgd.min.js"></script>
npm: npm install packery --save
Bower: bower install packery --save
Packery v3 is licensed under the MIT license.
With jQuery
$('.grid').packery({
// options...
itemSelector: '.grid-item'
});
With vanilla JavaScript
// vanilla JS
var grid = document.querySelector('.grid');
// initialize with element
var pckry = new Packery( grid, {
// options...
itemSelector: '.grid-item'
});
// initialize with selector string
var pckry = new Packery('.grid', {
// options...
});
With HTML
Add a data-packery
attribute to your element. Options can be set in JSON in the value.
<div class="grid" data-packery='{ "itemSelector": ".grid-item" }'>
<div class="grid-item"></div>
<div class="grid-item"></div>
...
</div>
By Metafizzy
FAQs
Gapless, draggable grid layouts
The npm package packery receives a total of 10,030 weekly downloads. As such, packery popularity was classified as popular.
We found that packery demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.