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.
@rabee-org/svelte-head
Advanced tools
svelte-head is a component library that allows you to easily set meta information etc. to be output to head.
svelte-head is a component library that allows you to easily set meta information etc. to be output to head.
npm install svelte-head --save
<script>
import {setOptions, Meta} from 'svelte-head';
// setup default value
setOptions({
title(title) {
return title ? `${title} | Svelte Head Demo` : 'Svelte Head Demo';
},
description(description) {
return description || `svelte-head is a component library that allows you to easily set meta information etc. to be output to head.`;
},
keywords(keywords) {
return keywords || `svelte,sveltekit,seo,head,meta`;
},
ogp(ogp) {
return {
type: 'website',
};
},
twitter(twitter) {
return {
card: 'summary_large_image',
};
},
});
</script>
<Meta title='Example Title' />
result
<title>Example Title | Svelte Head Demo</title>
<meta name="description" content="svelte-head is a component library that allows you to easily set meta information etc. to be output to head.">
<meta name="keywords" content="svelte,sveltekit,seo,head,meta">
<meta property="og:title" content="Example Title | Svelte Head Demo">
<meta property="og:description" content="svelte-head is a component library that allows you to easily set meta information etc. to be output to head.">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
MIT
FAQs
svelte-head is a component library that allows you to easily set meta information etc. to be output to head.
We found that @rabee-org/svelte-head demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.