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
- Host: GitHub
- URL: https://github.com/okitan/ink-slack
- Owner: okitan
- License: mit
- Created: 2021-10-02T03:07:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-30T02:00:08.000Z (9 months ago)
- Last Synced: 2025-09-30T04:04:28.991Z (9 months ago)
- Topics: slack
- Language: TypeScript
- Homepage:
- Size: 1.07 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
*/
```