ergebnis/day-one-to-obsidian-converter

Provides a console command for converting DayOne journals to Obsidian notes.

1.0.0 2022-11-15 18:48 UTC

This package is auto-updated.

Last update: 2023-12-08 07:08:12 UTC


README

Integrate Merge Release Renew

Code Coverage Type Coverage

Latest Stable Version Total Downloads Monthly Downloads

Provides a console command for converting DayOne journals to Obsidian notes.

Installation

Run

composer require ergebnis/day-one-to-obsidian-converter

Usage

Run

php bin/day-one-to-obsidian-converter <day-one-directory> <obsidian-vault-directory>

The command will

  • look for JSON files in <day-one-directory>
  • convert JSON files that match the JSON Schema in resource/day-one/schema.json to Markdown files in <obsidian-vault-directory>

Ideally, the <obsidian-vault-directory> should not exist yet.

Demo

Run

git clone git@github.com:ergebnis/day-one-to-obsidian-converter.git

to clone this repository.

Run

composer install

to install dependencies with composer.

Run

php bin/day-one-to-obsidian-converter demo/day-one demo/obsidian

to see the converter in action.

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.

Credits

This converter is inspired by quantumgardener/dayone-to-obsidian.

The list of non-printable characters for the RemoveNonPrintableCharacters text processor is obtained from PhpCsFixer\Fixer\Basic\NonPrintableCharacterFixer, originally created by Ivan Borzenkov.

The files in demo/day-one/ are taken from Importing data to Day One: Details about the import file types, and can be downloaded here

Curious what I am up to?

Follow me on Twitter!