unhead

1.11.18last stable release 1 week ago
Complexity Score
High
Open Issues
10
Dependent Projects
35
Weekly Downloadsglobal
677,276

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

Unhead

Universal document <head> tag manager. Tiny, adaptable and full featured.


Status: v1.9 Released
Please report any issues 🐛
Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦 • Join Discord for help

Highlights

  • 🌳 Powerful pluggable core with a tiny footprint
  • 🍣 All the good stuff: deduping, sorting, title templates, template params, etc.
  • 🪨 Rock-solid DOM updates, fast and tiny (~1kB minzipped)
  • 🚀 Add-ons for extra oomph: Capo.js, Tree-shaking, useSeoMeta, useScript, etc.
  • 💎 Fully typed with MDN docs
  • 🤝 Used by Nuxt with more framework support coming soon.

Docs

Visit the documentation site for guides and API references.

Install

npm i unhead

Quick Setup

Create the head client somewhere in your root application.

import { createHead } from 'unhead'

createHead()

Then use the composables anywhere you want.

// pages/about.js
import { useHead } from 'unhead'

useHead({
  title: 'About',
  meta: [
    { name: 'description', content: 'Learn more about us.' },
  ],
})

Demos

  • StackBlitz - Vue SPA

Sponsors

License

MIT License © 2022-PRESENT Harlan Wilton

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
658
Dependenciestotal
4
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute unhead in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install unhead
Processing...
Done

211 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.