Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

medium-to-markdown

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medium-to-markdown

import a medium URL and convert it to markdown

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
17
54.55%
Maintainers
1
Weekly downloads
 
Created
Source

Medium to markdown

npm npm

This module lets you take a medium post and convert it to markdown.

Command Line Usage

Setup:

  • Install npm if not already installed
  • Clone the repo
  • run npm install inside the repo

Outputting to command line:

npm run convert https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7

Replace the link with the article you want to convert.

Outputting to file:

npm run convert https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7 > exampleOutput.md

Replace the link with the article you want to convert.

What does the output look like?

See examples/exampleOutput.md for an example of what https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7 looks like when converted to markdown.

API Usage

Currently, the module supports getting the markdown from a medium post by URL.

const mediumToMarkdown = require('medium-to-markdown');

mediumToMarkdown.convertFromUrl('<medium post url>')
.then(function (markdown) {
  console.log(markdown); //=> Markdown content of medium post
});

Keywords

medium

FAQs

Package last updated on 24 Dec 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