Skip to main content

Wordpress Import

@svendowideit/wordpress-importv2026.07.28.1· 28d agoMODELS
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.

02Models1
@svendowideit/wordpress-importv2026.07.28.1wordpress_import.ts

Global Arguments

ArgumentTypeDescription
siteUrlstringWordPress base URL (e.g. https://jig.tools)
targetDirstringDirectory 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
ArgumentTypeDescription
perPagenumberPosts per request page (WP REST API max is 100)
categoriesPerPagenumberCategory lookup batch size
downloadImagesbooleanDownload <img> and featured-image URLs into an assets folder and rewrite them as local links
imageFolderstringSubfolder (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
04Platforms