Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viktomas/url-to-markdown
Script that fetches page content fromo URL and turns it into Markdown
https://github.com/viktomas/url-to-markdown
html-to-markdown markdown nodejs
Last synced: about 14 hours ago
JSON representation
Script that fetches page content fromo URL and turns it into Markdown
- Host: GitHub
- URL: https://github.com/viktomas/url-to-markdown
- Owner: viktomas
- Created: 2022-06-25T09:52:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T12:48:38.000Z (6 months ago)
- Last Synced: 2024-08-01T21:57:04.744Z (3 months ago)
- Topics: html-to-markdown, markdown, nodejs
- Language: JavaScript
- Homepage:
- Size: 82 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- project-awesome - viktomas/url-to-markdown - Script that fetches page content fromo URL and turns it into Markdown (JavaScript)
README
# url-to-markdown: Parse webpages to Markdown from your shell
`url-to-markdown` is a script that combines [mozilla/readability](https://github.com/mozilla/readability) with [mixmark-io/turndown](https://github.com/mixmark-io/turndown) to let you parse an article on the web into markdown with one command.
1. Install [Node](https://nodejs.org/en/) > 12
1. Install [Git](https://git-scm.com/)
1. Checkout this repo `git checkout https://github.com/viktomas/url-to-markdown.git`
1. Enter the folder `cd url-to-markdown`
1. Install dependencies `npm i`
1. Run the script:```sh
❯❯❯ node index.js https://example.com
```
```md
This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.[More information...](https://www.iana.org/domains/example)
```