# pass-message

> Web component that allows for invoking an arrow function or method of the host. or other "upSearched" components.

Latest version **0.0.5** (published 2021-09-23) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2021-09-23 |
| First published | 2021-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.6 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-message
- Repository: https://github.com/bahrus/pass-message
- Homepage: https://github.com/bahrus/pass-message#readme
- Issues: https://github.com/bahrus/pass-message/issues
- npm.io page: https://npm.io/package/pass-message

## Dependencies (2)

- [pass-up](https://npm.io/package/pass-up.md) 0.0.17
- [trans-render](https://npm.io/package/trans-render.md) 0.0.411

## Recent versions

- 0.0.5 (latest) — 2021-09-23
- 0.0.4 — 2021-09-15
- 0.0.3 — 2021-09-14
- 0.0.2 — 2021-09-13
- 0.0.1 — 2021-09-12
- 0.0.0 — 2021-09-12

## README

# pass-message

pass-message (or p-m for short) is a web component that can attach a listener to a neighboring DOM element, and invoke methods on its containing host web component, or other DOM elements up the DOM tree, when the event fires.

pass-message is one of a number of web components that comprise the [https://github.com/bahrus/p-et-alia] framework of web components.

## Example Syntax

```html
<button disabled part=expander class="expander nonPrimitive" -text-content></button>
<p-m on=click to-host prop=toggleOpen val=target.textContent></p-m>
```

"prop" is the name of the method or arrow function property attached to the Custom Element container.

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