# node-wp2md **Repository Path**: mirrors_jprichardson/node-wp2md ## Basic Information - **Project Name**: node-wp2md - **Description**: Convert your WordPress blog to Markdown. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Node.js - wp2md ================ Dump your WordPress blog into a static blog with Markdown. Why? ---- I don't want to use WordPress for blogging anymore. I want to use Markdown so that I can control the look, feel, and templates of my blogs. Installation ------------ npm install wp2md Example ------ **NOTE:** You must have `pandoc` binary installed: http://code.google.com/p/pandoc/downloads/list ```javascript wp2md({user: 'YOUR_USER_NAME', url: 'http://yourwordpressblog.com', password: 'YOUR_WORDPRESS_PW', cleanCode: true, addParas: true}) .error(function (err) { console.error(err); }) .article(function(article, next) { console.dir(article); next(); }).end(function() { console.log('\n Done.\n'); }) ``` API --- ### constructor **cleanCode:** Wordpress uses goofy `[sourcode]` blocks. If you want these converted to Github Flavored Markdown code blocks, then set this to true. **addParas:** Wordpress doesn't always enclose paragraphs with `

` html elements. The resulting Markdown may looked squished. Set this to true to fix this. **limit:** The number of simultaneous HTTP requests to allow. ### article Has a callback with a `article` object and `next` function. `next()` controls the rate at which requests happen. You must call `next()` when finished with your `article` data. Properties of `article`: `title`, `slug`, `content`, `author`, `tags`, `categories`, `comments`. License ------- (MIT License) Copyright 2012, JP Richardson