https://github.com/kylekarpack/wp-to-md
Convert WP posts to markdown in folders. Useful for migrating from WordPress to a static site generator like Hugo, Jekyll, GatsbyJS or others
https://github.com/kylekarpack/wp-to-md
command-line-tool html javascript markdown nodejs static-site wordpress
Last synced: 4 months ago
JSON representation
Convert WP posts to markdown in folders. Useful for migrating from WordPress to a static site generator like Hugo, Jekyll, GatsbyJS or others
- Host: GitHub
- URL: https://github.com/kylekarpack/wp-to-md
- Owner: kylekarpack
- License: mit
- Created: 2019-05-20T14:32:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T05:31:02.000Z (almost 2 years ago)
- Last Synced: 2025-09-19T13:32:09.995Z (9 months ago)
- Topics: command-line-tool, html, javascript, markdown, nodejs, static-site, wordpress
- Language: JavaScript
- Homepage:
- Size: 226 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wp-to-md
This tool is designed to download rendered content from WordPress via the API and save it in a local directory as markdown and images. It's a simple solution for moving content from WordPress to a static site generator such as Jekyll, Hugo, Gatsby, or others.
## Installation
```
yarn global add wp-to-md
```
or
```
npm i -g wp-to-md
```
You can also run the tool without installing if you prefer, via `npx`:
```
npx wp-to-md [options]
```
## Usage
```
$ wp-to-md [options]
Options:
-V, --version output the version number
-u, --url WordPress API URL Base
-o, --output Output directory (default: "./output")
-t, --type Post type to process (default: "pages")
-n, --number Maximum number of entries to process (default: 100)
-h, --help output usage information
```
## Development
1. Run ```yarn install``` or ```npm install``` to install dependencies
2. Run the utility with ```yarn start```/```npm start``` or ```node index.js```