@alvincrespo/hashnode-content-converter - v0.2.2
@alvincrespo/hashnode-content-converter
Convert Hashnode blog exports to framework-agnostic Markdown with YAML frontmatter.
Features
- Converts Hashnode export JSON to clean Markdown files
- Generates YAML frontmatter with metadata (title, date, tags, etc.)
- Downloads and localizes images from Hashnode CDN
- Handles Hashnode-specific markdown quirks (align attributes, etc.)
- Provides both CLI and programmatic APIs
- Includes progress tracking and event-based monitoring
Quick Links
Installation
npm install @alvincrespo/hashnode-content-converter
Quick Start
CLI
npx @alvincrespo/hashnode-content-converter convert \
--export ./hashnode-export.json \
--output ./blog/posts
Programmatic
import { Converter } from '@alvincrespo/hashnode-content-converter';
const result = await Converter.fromExportFile('./export.json', './blog');
console.log(`Converted ${result.converted} posts`);
Links