An open API service indexing awesome lists of open source software.

https://github.com/okitan/ink-slack

render Slack blocks into console
https://github.com/okitan/ink-slack

slack

Last synced: 5 months ago
JSON representation

render Slack blocks into console

Awesome Lists containing this project

README

          

# ink-slack

render Slack blocks into console

## Install

```console
$ npm install @okitan/ink-slack ink react
```

## Usage

```typescript
import { Slack } from "@okitan/ink-slack";
import type { KnownBlock } from "@slack/types";
import { render } from "ink";

const blocks: KnownBlock[] = [
{
type: "section",
text: {
type: "mrkdwn",
text: "New Paid Time Off request from \n\n",
},
},
];

render({blocks}); /* => outputed
New Paid Time Off request from Fred Enriquez (example.com)

View request (https://example.com)
*/
```