# postxml-repeat

> PostXML plugin for repeating elemetns

Latest version **0.2.0** (published 2016-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install postxml-repeat
pnpm add postxml-repeat
yarn add postxml-repeat
bun add postxml-repeat
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-03-17 |
| First published | 2015-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | alanev |
| Maintainers | alanev |
| Keywords | html, plugin, postxml, transform |

## Links

- npm: https://www.npmjs.com/package/postxml-repeat
- Repository: https://github.com/postxml/postxml-repeat
- Homepage: https://github.com/postxml/postxml-repeat#readme
- Issues: https://github.com/postxml/postxml-repeat/issues
- npm.io page: https://npm.io/package/postxml-repeat

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2016-03-17
- 0.1.0 — 2015-10-03

## README

# postxml-repeat
[![npm version][npm-image]][npm-url]

> [PostXML] plugin for repeating elemetns.

## Installation
`npm i postxml-repeat --save-dev`

## Usage
[Postxml]

## Example 1

### Input
```html
<div class="component">
	<div class="component__element" repeat="3">Hi!</div>
</div>
```

### Output
```html
<div class="component">
	<div class="component__element">Hi!</div>
	<div class="component__element">Hi!</div>
	<div class="component__element">Hi!</div>
</div>
```

## Example 2 (Array)
You can use template string syntax when repeat array (value, key).

### Input
```html
<div class="component">
	<div class="component__element" repeat="['A', 'B', 'C']">${value}</div>
</div>
```

### Output
```html
<div class="component">
	<div class="component__element">A</div>
	<div class="component__element">B</div>
	<div class="component__element">C</div>
</div>
```

## Licence
MIT

[PostXML]: https://github.com/postxml/postxml

[npm-url]: https://www.npmjs.org/package/postxml-repeat
[npm-image]: http://img.shields.io/npm/v/postxml-repeat.svg?style=flat-square

---
_Source: https://npm.io/package/postxml-repeat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
