![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
bookworms-slack-webhook
Advanced tools
This is a simple module to add a route into your server and have slack updates.
Make your bookmarks YMAL available in Slack
This module will add a POST
request to your Express or Fastify webserver that Slack can use as a webhook. It is a wrapper around Bookworms so it is recommended you understand how that works first.
This module is currently a prototype but is fully usable.
POST
request a webhook URLPOST
body and respond with a flavor of markdown designed for SlackThe following examples are based on an active Slack bot using Bookworms, how to do this and set up the command words are documented at the bottom.
If the user didn't select a top level Bookworms folder or passed all
the response will be a list of available commands.
/bookmarks all
The commands from the all
command is generated by the top level folders. You use the name of the top level folder and pass it to your slash command.
/bookmarks help
$ npm i bookworms-slack-webhook
Once its added to your project you can import it into your webserver.
import express from "express";
import { expressWorms } from "bookworms-slack-webhook";
const app = express();
const port = 3000;
await expressWorms(app, {
path: "https://raw.githubusercontent.com/thearegee/bookworms/main/demo/config/bookmarks.yaml",
});
app.get("/", (req, res) => {
res.send("Hello World!");
});
app.listen(port, () => {
console.log(`Example Express app listening on port ${port}`);
});
YAML
file. For more information see Bookworms/webhooks/slack/bookworms
import Fastify from "fastify";
import { fastWorms } from "bookworms-slack-webhook";
const app = Fastify();
const port = 3000;
app.register(fastWorms, {
path: "https://raw.githubusercontent.com/thearegee/bookworms/main/demo/config/bookmarks.yaml",
});
app.get("/", (request, reply) => {
reply.send("Hello World!");
});
app.listen(port, () => {
console.log(`Example Fastify app listening on port ${port}`);
});
YAML
file. For more information see Bookworms/webhooks/slack/bookworms
You can add Bookworms to your already existing bot or read about how to create a Slack bot.
This webhook works on using Slash commands.
all
will return all the top level foldersThe Bookworms logo was created by gullwing.io.
FAQs
This is a simple module to add a route into your server and have slack updates.
We found that bookworms-slack-webhook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.