# messenger-json-builder

> Helper utility to create Facebook Messenger JSON based on Templates.

Latest version **1.0.0** (published 2018-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install messenger-json-builder
pnpm add messenger-json-builder
yarn add messenger-json-builder
bun add messenger-json-builder
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-24 |
| First published | 2018-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gabriel Almeida |
| Maintainers | gbr |
| Keywords | airtable, formula, builder, query |

## Links

- npm: https://www.npmjs.com/package/messenger-json-builder
- npm.io page: https://npm.io/package/messenger-json-builder

## Dependencies (1)

- [ramda](https://npm.io/package/ramda.md) ^0.25.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-07-24

## README

# messenger-json-builder [![Build Status](https://travis-ci.org/gabrielalmeida/messenger-json-builder.svg?branch=master)](https://travis-ci.org/gabrielalmeida/messenger-json-builder)

> Helper utility to create Facebook Messenger JSON based on Templates.

## Install 

```bash
npm install messenger-json-builder
```

## Usage 

```js
  import M from "messenger-json-builder";

  const coverImage = M.getImage(`${content.cover}`);

  const details = M.createElement([
    M.button({
      type: "web_url",
      url: `${PLAY_URL}/movies/${content.id}`,
      title: "See on Play!"
    }),
    M.button({
      type: "show_block",
      block_names: ["NewSearch"],
      title: "New Search"
    }),
    M.button({
      type: "show_block",
      block_names: ["EndSuccess"],
      title: "Thanks! See you!"
    })
  ]);

  const sinopsysText = M.getText(sinopsys);
  const detailsButtons = M.getButtons([sinopsysText, details]);
  return M.send([coverImage, detailsButtons]);
```

## API

```ts
TODO
```

## License

MIT © [Gabriel Almeida](https://gabrielalmeida.me)

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