Socket
Socket
Sign inDemoInstall

webex-markdown

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webex-markdown

Webex Teams markdown helper


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Markdown helper for Webex Teams

If you are writing messages as a human, markdown is great. But if you create messages programatically as a bot, it can be frustrating and error prone to write newlines and string concatenations all over the place.

Goal:

  • Never write \n again.
  • Don't need to remember markdown syntax
  • Avoid string concatenation
  • Make working with lists easier
  • Programmatic approach instead of string manipulations

Example use case:

const { convert, bold, list, url, mention } = require('webex-markdown');
const hi = `Hi, welcome to ${bold('Markdown')}`;
const hi2 = 'I can do the following:';
const features = list(['Lists', 'Bold', 'Links', 'Code', 'Mention', 'And more']);
const link = `See ${url('npmjs.org', 'our npm page')} for more info`;
const author = mention(`Made by ${mention('tore@acme.com', 'Tore')}`);
const markdown = convert([hi, hi2, features, link, author]);

Keywords

FAQs

Package last updated on 21 Nov 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc