Wordpress Import
@svendowideit/wordpress-importv2026.07.28.1
01README
Import WordPress posts from a site's REST API (WP JSON) into Markdown files, with optional bearer-token auth and local image download for Obsidian git repos.
02Models
@svendowideit/wordpress-importv2026.07.28.1wordpress_import.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| siteUrl | string | WordPress base URL (e.g. https://jig.tools) |
| targetDir | string | Directory to write Markdown posts into (created if it does not exist) |
fn import(perPage: number, categoriesPerPage: number, downloadImages: boolean, imageFolder: string)
Fetch all posts from the configured WordPress site via its REST API and write one Markdown file per post into targetDir
| Argument | Type | Description |
|---|---|---|
| perPage | number | Posts per request page (WP REST API max is 100) |
| categoriesPerPage | number | Category lookup batch size |
| downloadImages | boolean | Download <img> and featured-image URLs into an assets folder and rewrite them as local links |
| imageFolder | string | Subfolder (inside targetDir) for downloaded images |
Resources
result(infinite)— Import summary
post(infinite)— Individual imported post
03Stats
B
85 / 100
Downloads
0
Archive size
14.6 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository0/2missing
Repository
https://github.com/umag/swamp-extensions04Platforms