# @nx-js/props-middleware

> An NX middleware, responsible for injecting properties into reusable components.

Latest version **1.0.0** (published 2017-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nx-js/props-middleware
pnpm add @nx-js/props-middleware
yarn add @nx-js/props-middleware
bun add @nx-js/props-middleware
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-10 |
| First published | 2017-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Miklos Bertalan |
| Maintainers | nx-js |
| Keywords | nx, middleware, props, properties |

## Links

- npm: https://www.npmjs.com/package/@nx-js/props-middleware
- Repository: https://github.com/nx-js/props-middleware
- Homepage: http://nx-framework.com
- Issues: https://github.com/nx-js/props-middleware/issues
- npm.io page: https://npm.io/package/@nx-js/props-middleware

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-10

## README

# The props middleware

The `props` middleware is responsible for injecting static or dynamic properties into reusable components.

- name: props
- middleware dependencies: [attributes](https://github.com/nx-js/attributes-middleware)
- all middleware dependencies: [observe](https://github.com/nx-js/observe-middleware), [attributes](https://github.com/nx-js/attributes-middleware)
- type: component middleware
- [docs](http://nx-framework.com/docs/middlewares/props)

## Installation

`npm install @nx-js/props-middleware`

## Usage

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

component()
  .use(observe)
  .use(attributes)
  .use(props('name', 'age', 'items'))
  .register('props-comp')
```

```html
<props-comp name="Bob" age="12" @items="myItems">Hello World!</props-comp>
```

---
_Source: https://npm.io/package/@nx-js/props-middleware · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
