Or Yaacov
Posted on May 19, 2023
Because of I love dev.to, and that I also have my own blog,
I created a new cli that converts dev.to link to markdown :)
How it works
The utility extract the post id from the page, and then using the post-id to query the raw markdown from dev.to API.
or you can just read the code here:
https://github.com/oryaacov/devto-to-markdown
Installation
- Ensure you have Node.js and npm (Node Package Manager) installed on your system.
- Open your terminal or command prompt.
- Execute the following command to install the utility globally:
npm i -g devto-to-markdown
`
Usage
Once the utility is installed, you can convert Dev.to blogs to Markdown using the following command:
devto-to-markdown -u <devto-url>
Replace <devto-url>
with the URL of the Dev.to blog you want to convert.
For example:
devto-to-markdown -u https://dev.to/oryaacov/how-to-setup-http-server-with-security-headers-using-nginx-docker-dok
Posted on May 19, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.