@nx-js/params-middleware

An NX middleware, responsible for query parameter routing.

Stats

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

Readme

The params middleware factory

The params middleware factory is responsible for automatically synchronizing state properties with query parameters.

  • name: params
  • direct middleware dependencies: observe
  • all middleware dependencies: observe
  • type: component middleware
  • ignores: text nodes
  • docs

Installation

npm install @nx-js/params-middleware

Usage

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

component()
  .use(observe)
  .use(params({
    paramName: {history: true, type: 'string'}
  }))
  .register('comp-name')

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.