libslackjs

1.0.1 • Public • Published

libslackjs

A custom slack library for Node.js

Installation

Use the package manager npm to install libslackjs.

npm install libslackjs

Usage

const slack = require('libslackjs');

let home = new Slack.UI.Surface.Home();

home.addBlock(
   new Slack.UI.Blocks.Section()
      .setText("Hello, world!")
);

new Slack.API.views.publish(access_token, user_id, home, (error, response, body) => {
   if (error)
      return console.log(error);
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i libslackjs

Weekly Downloads

5

Version

1.0.1

License

ISC

Unpacked Size

29.6 kB

Total Files

90

Last publish

Collaborators

  • calcaware