mathieudutour / medium-to-own-blog

Switch from Medium to your own blog in a few minutes
MIT License
3.03k stars 107 forks source link

script to import a single article #39

Closed koryteg closed 5 years ago

koryteg commented 5 years ago

It would be nice to be able to add a single exported article with something like: npm run import-article. would you be interested in this? looks like you could just do a bit of refactoring on the getMarkdownFromPost function to get it to run as a stand alone command.

mathieudutour commented 5 years ago

That sounds interesting yes :+1: Perhaps accepting the URL of the article as an argument?

mathieudutour commented 5 years ago

Fixed! The created project now have an npm script to import an article (npx --package=medium-to-own-blog import-medium-article)