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

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

Watchers

 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.