@nx-js/ref-middleware

An NX middleware, responsibe for handling internal references.

Stats

StarsIssuesVersionUpdatedCreatedSize
@nx-js/ref-middleware
002.0.05 years ago5 years agoMinified + gzip package size for @nx-js/ref-middleware in KB

Readme

The ref middleware

The ref middleware is responsible for handling internal references.

  • name: ref
  • middleware dependencies: attributes
  • all middleware dependencies: observe, attributes
  • type: component or content middleware
  • ignores: text nodes
  • docs

Installation

npm install @nx-js/ref-middleware

Usage

const component = require('@nx-js/core')
const observe = require('@nx-js/observe-middleware')
const attributes = require('@nx-js/attributes-middleware')
const ref = require('@nx-js/ref-middleware')

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .useOnContent(ref)
  .register('nav-comp')
<nav-comp>
  <a iref="profile">Profile</a>
  <a iref="settings">Settings</a>
</nav-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.