# moleculer-typetalk

> Moleculer addon that posts message to Typetalk.

Latest version **1.0.2** (published 2019-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install moleculer-typetalk
pnpm add moleculer-typetalk
yarn add moleculer-typetalk
bun add moleculer-typetalk
```

## 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.2 |
| Published | 2019-12-10 |
| First published | 2019-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Issei Horie |
| Maintainers | is2ei |
| Keywords | microservice, moleculer, typetalk |

## Links

- npm: https://www.npmjs.com/package/moleculer-typetalk
- Repository: https://github.com/is2ei/moleculer-typetalk
- Issues: https://github.com/is2ei/moleculer-typetalk/issues
- npm.io page: https://npm.io/package/moleculer-typetalk

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0

## Recent versions

- 1.0.2 (latest) — 2019-12-10
- 1.0.1 — 2019-12-10
- 1.0.0 — 2019-08-16
- 0.1.5 — 2019-08-16
- 0.1.3 — 2019-03-10
- 0.1.2 — 2019-03-10
- 0.1.1 — 2019-03-10
- 0.1.0 — 2019-03-10

## README

![Moleculer logo](http://moleculer.services/images/banner.png)

moleculer-typetalk
===

[![Build Status](https://img.shields.io/travis/com/is2ei/moleculer-typetalk/master.svg?style=flat-square)][travis]
[![Coverage Status](https://coveralls.io/repos/github/is2ei/moleculer-typetalk/badge.svg?branch=master)][coveralls]
[![npm version](https://img.shields.io/npm/v/moleculer-typetalk.svg?style=flat-square)][npm]

[travis]: https://travis-ci.com/is2ei/moleculer-typetalk
[coveralls]: https://coveralls.io/github/is2ei/moleculer-typetalk?branch=master
[npm]: https://badge.fury.io/js/moleculer-typetalk

## Install

```
$ npm i --save moleculer-typetalk
```

## Usage

```javascript
const {ServiceBroker} = require("moleculer"),
    TypetalkService = require("moleculer-typetalk"),
    config = require("./config");

// Create broker
const broker = new ServiceBroker({logger: console});

// Load my service
broker.createService({
    mixins: [TypetalkService],
    name: "typetalk",
    settings: {
        token: config.token,
        topicID: config.topicID
    }
});

// Start server
broker.start().then(() => {
    broker
        .call("typetalk.post", {
            message: "Hello, Typetalk!"
        })
        .then(() => {
            // Do something...
        })
        .catch(() => {
            // Do something...
        });
});
```

For working example, see [this repository](https://github.com/is2ei/moleculer-typetalk-example).


## Settings

| Property | Type | Default | Description |
| -------- | ---- | ------- | ----------- |
| token | String | required | Typetalk token. |
| topicID | String | required | Topic ID to post to. |

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