Loading...
Loading...
Compare original and translation side by side
defuddlecommand -v defuddle >/dev/null 2>&1 || npm install -g defuddle jsdomdefuddlecommand -v defuddle >/dev/null 2>&1 || npm install -g defuddle jsdom-m-jdefuddle parse "<url>" -m -j-m-jdefuddle parse "<url>" -m -jtitleauthorwordCounttitleauthorwordCount"Save to which directory? (e.g.,~/Documents, or a custom path)"~/Desktop
"保存到哪个目录?例如、~/Documents或自定义路径"~/Desktop
---
title: {title}
author: {author}
source: {url}
date: {published or "Unknown"}
clipped: {today's date YYYY-MM-DD}
wordCount: {wordCount}
------
title: {title}
author: {author}
source: {url}
date: {published or "Unknown"}
clipped: {today's date YYYY-MM-DD}
wordCount: {wordCount}
---
**File naming**: Use the article title as filename, sanitized for filesystem:
- Replace special characters with spaces
- Trim whitespace
- Example: `The Shape of the Essay Field.md`
**文件命名**:使用文章标题作为文件名,需符合文件系统命名规范:
- 将特殊字符替换为空格
- 修剪首尾空格
- 示例:`The Shape of the Essay Field.md`defuddle parse <source> [options]<source>https://...| Flag | Description |
|---|---|
| Convert content to Markdown |
| Output as JSON with full metadata |
| Write to file instead of stdout |
| Extract single property (title, description, domain, author, published, wordCount, content) |
| Verbose logging |
defuddle parse <source> [options]<source>https://...| 标记 | 说明 |
|---|---|
| 将内容转换为Markdown格式 |
| 输出包含完整元数据的JSON格式 |
| 写入文件而非输出到标准输出 |
| 提取单个属性(title、description、domain、author、published、wordCount、content) |
| 输出详细日志 |
-jtitleauthorpublisheddescriptioncontent-mdomainfaviconimagesitewordCountparseTime-jtitleauthorpublisheddescriptioncontent-mdomainfaviconimagesitewordCountparseTimejsdomjsdom