Skip to content
Convert WP posts to markdown in folders. Useful for migrating from WordPress to a static site generator like Hugo, Jekyll, GatsbyJS or others
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
.gitattributes
.gitignore
LICENSE
README.md
converter.js
index.js
package.json
page.js
utils.js
yarn.lock

README.md

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

$ npm i -g wp-to-md

or

$ yarn global add wp-to-md

Usage

$ wp-to-md [options]

Options:
  -V, --version        output the version number
  -u, --url <type>     WordPress API URL Base
  -o, --output <type>  Output directory (default: "./output")
  -t, --type <type>    Post type to process (default: "pages")
  -n, --number <type>  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
You can’t perform that action at this time.