
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@clearfeed-ai/slack-to-html
Advanced tools
Forked originally from https://github.com/swiftype/slack-hawk-down & https://github.com/hectorbenitez/slack-to-html
Slack markdown to HTML
npm install --save slack-to-html
import { escapeForSlack, escapeForSlackWithMarkdown } from 'slack-hawk-down'
escapeForSlack(':wave:') // => 'Ґ'
escapeForSlackWithMarkdown('`this is a code block`) // => '<span class="slack_code">this is a code block</span>'
You can view the rest of the markdown styles here
escapeForSlack('<@U123|david> did you see my pull request?', { users: { 'U123': 'david', ... } }) // => '@david did you see my pull request?'
You can get a list of the users in your Slack team by requesting this endpoint with a users:read scope
escapeForSlack('<#C123> please fill out this poll', { channels : { '#C123': 'general', ... } }) // => '#general please fill out this poll'
You can get a list of the users in your Slack team by requesting this endpoint with a channels:read scope
escapeForSlack(':facepalm:', { customEmoji: { facepalm: 'http://emojis.slackmojis.com/emojis/images/1450319441/51/facepalm.png', ... } }) // => '<img alt="facepalm" src="http://emojis.slackmojis.com/emojis/images/1450319441/51/facepalm.png" />'
You can get a list of custom emoji for your Slack team by requesting this endpoint with a emoji:read scope
escapeForSlack('<!subteam^S123>', { usergroups: { 'S123': 'swiftype-eng', ...} }) // => 'swiftype-eng'
You can get a list of user groups for your Slack team by requesting this endpoint with a usergroups:read scope
npm test
Please open a pull request or issue
MIT
FAQs
Render Slack markdown as HTML
The npm package @clearfeed-ai/slack-to-html receives a total of 245 weekly downloads. As such, @clearfeed-ai/slack-to-html popularity was classified as not popular.
We found that @clearfeed-ai/slack-to-html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.