Giter VIP home page Giter VIP logo

unhead's Introduction

Unhead

NPM version NPM Downloads GitHub stars

Universal document tag manager. Tiny, adaptable and full featured.


Status: v1.7 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 (952 bytes minzipped)
  • ๐Ÿš€ Add-ons for extra oomph: Capo.js, Hash Hydration and Vite tree-shaking
  • ๐Ÿ’Ž 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

Sponsors

License

MIT License ยฉ 2022-PRESENT Harlan Wilton

unhead's People

Contributors

719media avatar amplitudesxd avatar antfu avatar arashsheyda avatar atinux avatar censujiang avatar danbars avatar danielroe avatar dargmuesli avatar gangsthub avatar harlan-zw avatar littlesound avatar mannil avatar mittalyashu avatar mukundshah avatar nozomuikuta avatar renovate[bot] avatar s-en-o avatar spnc-omz avatar t0yohei avatar thomasbnt avatar vetruvet avatar yunyoujun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.