npm

Need private packages and team management tools?Check out npm Orgs. »

markdown2text

1.1.0 • Public • Published

markdown2text

Trivial utility project to convert markdown to plaintext using markdown-it.

Slapped together in the middle of another project, don't expect much.

Usage

CLI:

npm i markdown2text
echo "# yo\ntext and a [link](https://gjp.cc)" | markdown2text
# Outputs:
#   yo
#   text and a link

Library:

const markdownToText = require('markdown2text');
console.log(markdownToText('a [link](https://gjp.cc)'));
// Outputs: "a link"

Keywords

none

install

npm i markdown2text

Downloadsweekly downloads

5

version

1.1.0

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability