Closed koryteg closed 5 years ago
That sounds interesting yes :+1: Perhaps accepting the URL of the article as an argument?
Fixed! The created project now have an npm script to import an article (npx --package=medium-to-own-blog import-medium-article
)
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 thegetMarkdownFromPost
function to get it to run as a stand alone command.