# element-list

> A splice stream that renders a list of elements

Latest version **0.1.1** (published 2012-08-30) · 0 weekly downloads

## Install

```sh
npm install element-list
pnpm add element-list
yarn add element-list
bun add element-list
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2012-08-30 |
| First published | 2012-08-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/element-list
- Repository: https://github.com/Raynos/element-list
- Issues: https://github.com/Raynos/element-list/issues
- npm.io page: https://npm.io/package/element-list

## Dependencies (2)

- [append-to](https://npm.io/package/append-to.md) 0.0.1
- [splice-stream](https://npm.io/package/splice-stream.md) ~0.3.1

## Recent versions

- 0.1.1 (latest) — 2012-08-30
- 0.1.0 — 2012-08-29
- 0.0.1 — 2012-08-27

## README

# element-list

A splice stream that renders a list of elements

## Example

``` js
var stream = ElementList(function (item, element) {
    /*
        Item is the item you added to the list.
        Element is a wrapper element generated from the item option. A li
            in this case
    */

    /* do your rendering logic */
    var span = document.createElement("span")
    span.textContent = item
    element.appendChild(span)
})

// Since stream is a splice-stream you can call the createList function
var list = stream.createList()

// list is just a List object from splice-stream so do stuff
list.push("some value. Anything you want")

// Make sure to append the elementList somewhere. 
// Yes it's a stream and has custom
stream.appendTo(document.body)
```

## Installation

`npm install element-list`

## Contributors

 - Raynos

## MIT Licenced

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