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.
@avalanche/object-media
Advanced tools
Media object - image on left/right, text next to it
Media object - image on left/right, text next to it.
npm install @avalanche/object-media --save-dev
// Import the main file.
@import 'node_modules/@avalanche/object-media/scss/index.scss';
Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules
a much nicer experience.
// Import the main file.
@import '~@avalanche/object-media';
// Import just the classes you need.
@import '{ .o-media, .o-media__body } from ~@avalanche/object-media';
// Not a fan of the "o-" prefix?
@import '{ .o-media as .media, .o-media__body as .media__body } from ~@avalanche/object-media';
<div class="o-media">
<div class="o-media__figure">
<img src="http://placehold.it/50x50" alt="Placeholder">
</div>
<div class="o-media__body">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et.
</div>
</div>
<div class="o-media o-media--xl">
<div class="o-media__figure">
<img src="http://placehold.it/50x50" alt="Placeholder">
</div>
<div class="o-media__body">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et.
</div>
</div>
@import 'node_modules/@avalanche/object-media/scss/mixins';
// Usage.
.media {
@include o-media();
}
.media-figure {
@include o-media-figure();
}
.media-body {
@include o-media-body();
}
/// Default spacing.
/// @type String
$o-media-spacing-default: m !default;
Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner
MIT
FAQs
Media object - image on left/right, text next to it
We found that @avalanche/object-media demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.