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.
nuxt-hedge
Advanced tools
Readme
Nuxt v3 head-edge module to play with new experimental features.
Status: Early Access Please report any issues 🐛 Made possible by my Sponsor Program 💖 Follow me @harlan_zw 🐦 • Join Discord for help |
useMetaTags
DebugHead
useHeadRaw
href
and src
file auto-completionhead:tags
, head:entries
Coming soon:
head:dom:render
, head:ssr:render
I'm the maintainer of @vueuse/head and zhead.
This module was built to test bug fixes as well as experimental new features which may land into the Nuxt core.
While it should be relatively safe for production use, it will be updated frequently and may lose parity with the Nuxt meta module, use with caution.
npm install --save-dev nuxt-hedge
# Using yarn
yarn add --dev nuxt-hedge
This module replaces the internal Nuxt meta
module, so the setup is slightly different.
nuxt.config.ts
export default defineNuxtConfig({
// ...
hooks: {
'modules:before': async ({ nuxt }) => {
// swap out the nuxt internal module for nuxt-hedge
for (const k in nuxt.options._modules) {
if (typeof nuxt.options._modules[k] === 'function' && (await nuxt.options._modules[k].getMeta()).name === 'meta')
nuxt.options._modules[k] = 'nuxt-hedge'
}
},
},
})
seoOptimise
Type: boolean
Default: true
Automatically optimise meta tags for SEO.
It will automatically infer the og:title
, og:description
when a title and description are set respectively. It will
ensure a twitter:card
is set to summary_large_image
if not set.
This will do more in the future.
Usage of the composable remains mostly the same. This version offers better TypeScript and XSS presentation support.
The children
property is has been deprecated in favor of textContent
.
Read the useHead docs for more details.
useHead({
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
style: [
{
textContent: 'body { background-color: red; }',
}
]
})
Define your meta tags as a flat object. This function is automatically imported for you.
Behind the scenes, this unpacks your meta tags and adds them as if you used useHead
directly.
useMetaTags({
ogImage: "https://nuxtjs.org/meta_400.png",
ogUrl: "https://nuxtjs.org",
ogSiteName: "NuxtJS",
ogType: "website",
ogLocale: "en_US",
ogLocaleAlternate: "fr_FR",
twitterSite: "@nuxt_js",
})
A component to debug your head tags.
<template>
<DebugHead />
</template>
MIT License © 2022-PRESENT Harlan Wilton
FAQs
🌳 nuxt-hedge
We found that nuxt-hedge 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
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.