
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@codewithshin/svelte-utterances
Advanced tools
npm i -D @codewithshin/svelte-utterances
After cloning this repo, you can see Svelte-Utterances in action in the demo-site branch.
git checkout demo-site
Name | Default |
---|---|
reponame | None |
issueTerm | pathname |
label | comments |
theme | github-light |
The default is github-light. Select one from:
The default is pathname. Select one from:
<script>
import { Utterances } from '@codewithshin/svelte-utterances'
</script>
<Utterances
theme="github-dark"
reponame="yourname/repo-name"
/>
Check more details Svelte-Utterances
You can toggle between two themes.
<script>
import Utterances from "@codewithshin/svelte-utterances";
import {Button} from 'flowbite-svelte'
let theme = "github-light";
const switchTheme = () => {
theme = theme === "github-light" ? "github-dark" : "github-light";
};
</script>
<Button on:click={switchTheme} name="Toggle theme" />
<Utterances reponame="shinokada/svelte-utterances" {theme} />
This is an example of how to reactively change the theme.
Install Flowbite-Svelte
:
npm i -D flowbite-svelte
<script>
import { Utterances } from "@codewithshin/svelte-utterances";
import { Select } from "flowbite-svelte";
let theme = "github-light";
let selectprops = {
id: "theme-select",
name: "theme-select",
label: "Select your theme",
};
let selectClass =
"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-48 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500";
</script>
<div class="my-16 relative">
<Select {...selectprops} bind:value={theme} {selectClass}>
<option value="github-light">GitHub Light</option>
<option value="github-dark">GitHub Dark</option>
<option value="github-dark-orange">GitHub Dark Orange</option>
<option value="icy-dark">Icy Dark</option>
<option value="dark-blue">Dark Blue</option>
<option value="photon-dark">Photon Dark</option>
<option value="boxy-light">Boxy Light</option>
<option value="gruvbox-dark">Gruvbox Dark</option>
</Select>
<Utterances reponame="shinokada/svelte-utterances" {theme} />
</div>
Check more details Utterances
FAQs
Svelte Utterances Component
The npm package @codewithshin/svelte-utterances receives a total of 10 weekly downloads. As such, @codewithshin/svelte-utterances popularity was classified as not popular.
We found that @codewithshin/svelte-utterances demonstrated a not healthy version release cadence and project activity because the last version was released 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.