Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
vue-html-meta
Advanced tools
Readme
<script setup>
import { mountMeta } from 'vue-html-meta'
const { title, meta, jsonld } = mountMeta()
title.value = 'My Page'
meta.value = [
{ name: 'description', content: 'hello' }
]
jsonld.value = {
'@context': 'https://schema.org'
}
</script>
<head>
<title>My Page</title>
<meta name="description" content="hello">
<script type="application/ld+json">{"@context":"https://schema.org"}</script>
</head>
npm inatll vue-html-meta
# or
yarn add vue-html-meta
createMeta(options?: MetaPluginOptions): MetaPlugin
mountMeta(): MetaData | undefined
interface MetaData {
/*
* The text of <title>
*/
title: Ref<string | undefined>
/*
* The attributes of <meta> tags
*/
meta: Ref<MetaProps[] | undefined>
/*
* JSON-LD. This value will stringify to JSON and
* render to <script type="application/ld+json">{...}</script> in <head>
*/
jsonld: Ref<object | undefined>
}
type MetaProps = {
[key: string]: string
}
This is intentionally to avoid hydration, checking and errors.
Transport
to the head
tag can fail hydration.
This is because HTTP middleware and other libraries can change the head
.
However there is room to consider the option of using transport.
FAQs
Easy setting HTML tags in head (title, meta, jsonld, etc...) for Vue
The npm package vue-html-meta receives a total of 1 weekly downloads. As such, vue-html-meta popularity was classified as not popular.
We found that vue-html-meta 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.