bookmark_exporter

Crates.iobookmark_exporter
lib.rsbookmark_exporter
version1.0.0
sourcesrc
created_at2024-08-24 23:16:07.092955
updated_at2024-08-24 23:16:07.092955
descriptionBookmark exporter
homepage
repositoryhttps://github.com/jlyonsmith/bookmark_exporter
max_upload_size
id1350604
size43,591
John Lyon-Smith (jlyonsmith)

documentation

README

Bookmark Exporter

coverage Crates.io Docs.rs

This is a basic CLI bookmark exporter tool.

Currently the following browsers are supported:

Browser Argument Description
Firefox --firefox Firefox uses a SQLite database so the browser must be closed to do the export.
Chrome --chrome Chrome uses a JSON file and the export can be run with the browser open. You may
still want to close it if you have recently added bookmarks.

The tool has been tested on:

  • macOS

If you want additional functionality, please add it and make a pull request.

Formatting

The tool dumps bookmark information to stdout in line pairs; title followed by URL. You can format the output as you wish. To format as markdown links, for example, you could do:

bookmark-exporter --chrome --firefox | tr -d "\"'" | gxargs -d '\n' -L2 printf "[%s](%s)\n" \"$0\" \"$1\"

On a Mac this assumes you have installed the GNU version of xargs, gxargs with brew install findutils.

Commit count: 0

cargo fmt