# parsegraph-method

> An object that holds a function

Latest version **1.4.26** (published 2023-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install parsegraph-method
pnpm add parsegraph-method
yarn add parsegraph-method
bun add parsegraph-method
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.26 |
| Published | 2023-02-01 |
| First published | 2020-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rainback, Inc. |
| Maintainers | dafrito, tracy3 |

## Links

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

## Recent versions

- 1.4.26 (latest) — 2023-02-01
- 1.4.26-dev (dev) — 2023-02-01
- 1.4.17-22-16.x.0 (dev-16.x) — 2022-02-13
- 1.4.17-22-14.x.0 (dev-14.x) — 2022-02-13
- 1.4.17-22-12.x.0 (dev-12.x) — 2022-02-13
- 1.4.7 (next) — 2021-07-14
- 1.4.25 — 2023-01-22
- 1.4.25-dev — 2023-01-22
- 1.4.24 — 2023-01-14
- 1.4.24-dev — 2023-01-14
- 1.4.23 — 2022-12-30
- 1.4.23-dev — 2022-12-30
- 1.4.22 — 2022-03-01
- 1.4.22-dev — 2022-03-01
- 1.4.21 — 2022-03-01
- … 64 more at https://npm.io/package/parsegraph-method/versions

## README

# Method

This contains a single class that represents a method, whose this-argument is
saved at construction-time.

    import Method from 'parsegraph-method';

    const method = new Method();

    class Object {
        _onUpdate: Method;

        constructor() {
            this._onUpdate = new Method();
        }

        onUpdate(listener: ()=>void, listenerObj?: object) {
            // Listener this-object is optional.
            this._onUpdate.set(listener, listenerObj);
        }

        update() {
            // Safe to call even if unset.
            this._onUpdate.call();
        }
    }

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