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.
github.com/HosseinShabani/svelte-checkbox
A checkbox component for Svelte (Cool animation, Customizable).
yarn add svelte-checkbox
<script>
import Checkbox from "svelte-checkbox";
let checked = false;
</script>
<Checkbox bind:checked></Checkbox>
Prop | Type | Default | Description |
---|---|---|---|
size | String | 3rem | Component width & height |
name | String | - | Input name |
id | String | - | Component id |
class | String | - | Component class |
primaryColor | String | #242432 | Primary color |
secondaryColor | String | #d8d8ea | Secondary color |
checked | Boolean | false | Checked input |
Event Name | Callback | Description |
---|---|---|
change | (event) => event.detail | fires when checked/unchecked |
<script>
import Checkbox from "svelte-checkbox";
function handleChange({ detail }) {
console.log("checked", detail);
}
</script>
<Checkbox on:change="{handleChange}" />
<script>
import Checkbox from "svelte-checkbox";
let checked = false;
</script>
<style>
:global(.main__checkbox) {
margin: 0.5rem;
}
</style>
<Checkbox
class="main__checkbox"
size="5rem"
bind:checked
name="inputName"
secondaryColor="rgba(1, 50, 67,0.2)"
primaryColor="rgb(77, 5, 232)"
/>
FAQs
Unknown package
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.