| Crates.io | apple-notes-exporter |
| lib.rs | apple-notes-exporter |
| version | 0.1.0 |
| created_at | 2025-01-19 00:22:29.371077+00 |
| updated_at | 2025-01-19 00:22:29.371077+00 |
| description | A library and CLI tool for exporting Apple Notes to Markdown |
| homepage | |
| repository | https://github.com/vacekj/apple-notes-exporter |
| max_upload_size | |
| id | 1522336 |
| size | 72,104 |
A Rust library and CLI tool for exporting Apple Notes to Markdown files.
cargo install apple-notes-exporter
Add this to your Cargo.toml:
[dependencies]
apple-notes-exporter = "0.1.0"
# Export notes to current directory
apple-notes-exporter
# Export notes to specific directory
apple-notes-exporter -o ./my-notes
# Export without using attachments folder
apple-notes-exporter --use-attachments false
# Export without subdirectories
apple-notes-exporter --use-subdirs false
use apple_notes_exporter::{export_notes, ExportConfig};
use std::path::PathBuf;
fn main() -> anyhow::Result<()> {
let config = ExportConfig {
output_dir: PathBuf::from("./my-notes"),
use_attachments: true,
filename_format: String::from("&title"),
subdir_format: String::from("&folder"),
use_subdirs: true,
};
let notes = export_notes(&config)?;
println!("Exported {} notes", notes.len());
Ok(())
}
MIT