@nx-js/meta-middleware

An NX middleware, responsible for handling metadata and analytics.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Feb 10, 2017Jan 16, 2017Minified + gzip package size for @nx-js/meta-middleware in KB

Readme

The meta middleware

The meta middleware is responsible for handling page metadata and analytics.

  • name: meta
  • direct middleware dependencies: none
  • all middleware dependencies: none
  • type: component middleware
  • docs

Installation

npm install @nx-js/meta-middleware

Usage

const component = require('@nx-js/core')
const meta = require('@nx-js/meta-middleware')

component()
  .use(meta({
    title: 'Home page',
    description: 'The home page of my project, which is ...',
    author: 'Me',
    keywords: ['home', 'page'],
    robots: 'nofollow',
    analytics: '/home'
  }))
  .register('page-comp')
<page-comp></page-comp>

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.