# pass-up

> Glue DOM and Custom Elements together.

Latest version **0.0.30** (published 2021-09-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install pass-up
pnpm add pass-up
yarn add pass-up
bun add pass-up
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.30 |
| Published | 2021-09-29 |
| First published | 2021-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | anderson.bruce.b@gmail.com |
| Maintainers | bahrus |
| Keywords | web-components, web-component, custom-elements, custom-element, bind, dom-bind |

## Links

- npm: https://www.npmjs.com/package/pass-up
- Repository: https://github.com/bahrus/pass-up
- Homepage: https://github.com/bahrus/pass-up#readme
- Issues: https://github.com/bahrus/pass-up/issues
- npm.io page: https://npm.io/package/pass-up

## Dependencies (2)

- [on-to-me](https://npm.io/package/on-to-me.md) 0.0.49
- [trans-render](https://npm.io/package/trans-render.md) 0.0.414

## Recent versions

- 0.0.30 (latest) — 2021-09-29
- 0.0.29 — 2021-09-29
- 0.0.28 — 2021-09-29
- 0.0.27 — 2021-09-29
- 0.0.26 — 2021-09-28
- 0.0.25 — 2021-09-28
- 0.0.24 — 2021-09-27
- 0.0.23 — 2021-09-25
- 0.0.22 — 2021-09-25
- 0.0.21 — 2021-09-25
- 0.0.20 — 2021-09-25
- 0.0.19 — 2021-09-25
- 0.0.17 — 2021-09-22
- 0.0.16 — 2021-09-15
- 0.0.15 — 2021-09-14
- … 15 more at https://npm.io/package/pass-up/versions

## README

# pass-up

<a href="https://nodei.co/npm/pass-up/"><img src="https://nodei.co/npm/pass-up.png"></a>

[![Actions Status](https://github.com/bahrus/pass-up/workflows/CI/badge.svg)](https://github.com/bahrus/pass-up/actions?query=workflow%3ACI)

<img src="https://badgen.net/bundlephobia/minzip/pass-up">

pass-up (or p-u for short) is a web component, which, together with [pass-down, or p-d for short](https://github.com/bahrus/pass-down) provides (limited) declarative two-way binding support of web components.

p-u is one member of the [family of web components](https://github.com/bahrus/p-et-alia) that forms a framework for declaratively gluing web components together, using HTML as the preferred mime-type for delivering content.

## Sample Syntax

```html
<div id=target1></div>
<div id=firstLine disabled data-why="There was an old lady who swallowed a fly;">I don't know why she swallowed a fly - Perhaps she'll die!</div>
<p-u on=load to=/target1 prop=textContent init-val=dataset.why></p-u>
<div target2 id=target2></div>
<div id=thirdLine disabled data-spider="There was an old lady who swallowed a spider;"> </div>
<p-u on=click to-nearest-up-match=[target2] prop=textContent val=target.dataset.spider></p-u>
```

## Import Maps

If using a static file web server with no bundling, the following entries are required in your import map:

```html
<script type=importmap>
    {
        "imports": {
            "trans-render/": "../node_modules/trans-render/",
            "on-to-me/": "../node_modules/on-to-me/"
        }
    }
</script>
```

## Viewing Your Element

To view this element locally:

1.  Install git, npm
2.  Clone or fork this git repo.
3.  Open a terminal from the folder created in step 2.
4.  Run npm install
5.  Run npm run serve
6.  Open http://localhost:3030/demo/dev

## Running Tests

```
$ npm tests
```

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