# app3-core-method

> Creates the methods on the app3 modules. This is an internal package.

Latest version **0.9.3-2** (published 2018-11-20) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install app3-core-method
pnpm add app3-core-method
yarn add app3-core-method
bun add app3-core-method
```

## 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.9.3-2 |
| Published | 2018-11-20 |
| First published | 2018-11-15 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.3 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | apisplatform |

## Links

- npm: https://www.npmjs.com/package/app3-core-method
- Repository: https://github.com/APIS-Platform/app3.js
- Homepage: https://apisplatform.io
- Issues: https://github.com/APIS-Platform/app3.js/issues
- npm.io page: https://npm.io/package/app3-core-method

## Dependencies (5)

- [app3-utils](https://npm.io/package/app3-utils.md) ^0.9.3-3
- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [app3-core-helpers](https://npm.io/package/app3-core-helpers.md) ^0.9.3-2
- [app3-core-promievent](https://npm.io/package/app3-core-promievent.md) ^0.9.3-1
- [app3-core-subscriptions](https://npm.io/package/app3-core-subscriptions.md) ^0.9.3-1

## Recent versions

- 0.9.3-2 (latest) — 2018-11-20
- 0.9.3-1 — 2018-11-15
- 0.9.3 — 2018-11-15

## README

# app3-core-method

This is a sub package of [app3.js][repo]

The Method package used within most [app3.js][repo] packages.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install app3-core-method
```

### In the Browser

Build running the following in the [app3.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/app3-core-method.js` in your html file.
This will expose the `App3Method` object on the window object.


## Usage

```js
// in node.js
var App3Method = require('app3-core-method');

var method = new App3Method({
    name: 'sendTransaction',
    call: 'apis_sendTransaction',
    params: 1,
    inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);

myCoolLib.sendTransaction({...}, function(){ ... });
```


[docs]: https://app3js.readthedocs.io/en/latest
[repo]: https://github.com/APIS-Platform/app3.js

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