Go to file
almenon d256e33683 get rid of weird hidden images 2019-12-22 16:35:57 -08:00
lib get rid of weird hidden images 2019-12-22 16:35:57 -08:00
.gitignore add .gitignore 2017-04-28 17:27:06 -07:00
LICENSE add license 2017-04-28 17:28:22 -07:00
README.md updated readme with command line usage 2019-12-22 15:17:38 -08:00
exampleOutput.md get rid of weird hidden images 2019-12-22 16:35:57 -08:00
index.js add ability to run from command line 2019-12-22 15:11:27 -08:00
package-lock.json update version to 0.0.3 2019-12-22 15:18:02 -08:00
package.json update version to 0.0.3 2019-12-22 15:18:02 -08:00

README.md

Medium to markdown

npm npm

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

Command Line Usage

Setup:

  1. Install npm if not already installed
  2. Clone the repo
  3. 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.

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
});