Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
quarkc-compare-image
Advanced tools
Readme
Image comparison component is realized based on Quarkc, modified according to vue-compare-image.
Simple web component to compare two images using slider.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hello Quark</title>
<script type="module" src="https://unpkg.com/quarkc-compare-image"></script>
<style>
body {
margin: 0;
display: grid;
justify-content: center;
}
p {
text-align: center;
}
quarkc-compare-image {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<quarkc-compare-image
leftImage="https://vue-compare-image.yuuniworks.com/cat1.jpg"
rightImage="https://vue-compare-image.yuuniworks.com/cat2.jpg"
/>
</body>
</html>
This component can be used whether it is a Vue, React, Angular, or Jq project.
In the shell:
npm install quarkc-compare-image
In your component file:
import QuarkcCompareImage from "quarkc-compare-image";
<QuarkcCompareImage
leftImage="https://vue-compare-image.yuuniworks.com/cat1.jpg"
rightImage="https://vue-compare-image.yuuniworks.com/cat2.jpg"
/>
Prop (* required) | type | default | description |
---|---|---|---|
handleSize | number (px) | 40 | diameter of slider handle (by pixel) |
hover | boolean | false | Whether to slide at hover |
leftImage * | string | null | left image's url |
leftImageAlt | string | null | left image's alt |
leftLabel | string | null | Left image text label |
rightImage * | string | null | right image's url |
rightImageAlt | string | null | right image's alt |
rightLabel | string | null | Right image text label |
sliderLineWidth | number (px) | 2 | line width of slider (by pixel) |
sliderPositionPercentage | number (float) | 0.5 | Starting line position (from 0 to 1) |
FAQs
Image comparison component is realized based on Quarkc, modified according to vue-compare-image.
The npm package quarkc-compare-image receives a total of 4 weekly downloads. As such, quarkc-compare-image popularity was classified as not popular.
We found that quarkc-compare-image 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.