Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@slack/hooks
Advanced tools
Node implementations of the contract between the Slack CLI and Bolt for JavaScript
The @slack/hooks
package contains scripts that implement the contract between
the Slack CLI and Bolt for JavaScript.
This package supports Node v18 and higher. It's highly recommended to use the latest LTS version of Node.
An updated version of the Slack CLI is also encouraged while using this package.
Add this package as a development dependency for your project with the following command:
$ npm install --save-dev @slack/hooks
Follow the installation guide to download the Slack CLI and easily run the scripts included in this package.
Scripts in this package are used by the Slack CLI when running certain commands.
These scripts are automatically added to the ./node_modules/.bin
directory of
a project when this package is installed.
Define the manifest of your application in a manifest.json
file:
{
"display_information": {
"name": "Hooks"
},
"settings": {
"org_deploy_enabled": true,
"socket_mode_enabled": true,
},
"features": {
"bot_user": {
"display_name": "Hooks"
}
},
"oauth_config": {
"scopes": {
"bot": ["chat:write"]
}
}
}
Or collect an existing manifest for your app from the App Manifest tab on App Config.
Configure a Bolt project to use these scripts by creating a slack.json
file in
the root directory of your project:
{
"hooks": {
"get-hooks": "npx -q --no-install -p @slack/hooks slack-cli-get-hooks"
}
}
With this package configured and the Slack CLI installed, you're ready to run your app:
$ slack run
If you get stuck, we're here to help. The following are the best ways to get assistance working through your issue:
developers@slack.com
FAQs
Node implementations of the contract between the Slack CLI and Bolt for JavaScript
The npm package @slack/hooks receives a total of 0 weekly downloads. As such, @slack/hooks popularity was classified as not popular.
We found that @slack/hooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.