# susyweb-core-method

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

Latest version **1.0.0-beta.35** (published 2019-06-20) · LGPL-3.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.35 |
| Published | 2019-06-20 |
| First published | 2019-06-20 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | superstring |

## Links

- npm: https://www.npmjs.com/package/susyweb-core-method
- Repository: https://octonion.institute/susy-js/susyweb.js/tree/master/packages/susyweb-core-method
- npm.io page: https://npm.io/package/susyweb-core-method

## Dependencies (5)

- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [susyweb-utils](https://npm.io/package/susyweb-utils.md) 1.0.0-beta.35
- [susyweb-core-helpers](https://npm.io/package/susyweb-core-helpers.md) 1.0.0-beta.35
- [susyweb-core-promievent](https://npm.io/package/susyweb-core-promievent.md) 1.0.0-beta.35
- [susyweb-core-subscriptions](https://npm.io/package/susyweb-core-subscriptions.md) 1.0.0-beta.35

## Recent versions

- 1.0.0-beta.35 (latest) — 2019-06-20
- 1.0.0-beta.55 — 2019-06-20
- 1.0.0-beta.52 — 2019-06-20
- 1.0.0-beta.37 — 2019-06-20

## README

# susyweb-core-method

This is a sub package of [susyweb.js][repo]

The Method package used within most [susyweb.js][repo] packages.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install susyweb-core-method
```

### In the Browser

Build running the following in the [susyweb.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/susyweb-core-method.js` in your html file.
This will expose the `SusyWebMethod` object on the window object.


## Usage

```js
// in node.js
var SusyWebMethod = require('susyweb-core-method');

var method = new SusyWebMethod({
    name: 'sendTransaction',
    call: 'sof_sendTransaction',
    params: 1,
    inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);

myCoolLib.sendTransaction({...}, function(){ ... });
```


[docs]: http://susywebjs.readthedocs.io/en/1.0/
[repo]: https://octonion.institute/susy-js/susyweb.js

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