ergebnis / day-one-to-obsidian-converter
Provides a console command for converting DayOne journals to Obsidian notes.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1
- ergebnis/json-schema-validator: ^2.0.0
- symfony/console: ^6.1.7
- symfony/filesystem: ^6.1.5
- symfony/yaml: ^6.1.6
Requires (Dev)
- ergebnis/composer-normalize: ^2.28.3
- ergebnis/data-provider: ^1.2.0
- ergebnis/license: ^2.0.0
- ergebnis/php-cs-fixer-config: ^4.11.0
- fakerphp/faker: ^1.20.0
- infection/infection: ~0.26.16
- phpunit/phpunit: ^9.5.26
- psalm/plugin-phpunit: ~0.18.3
- vimeo/psalm: ^4.30
This package is auto-updated.
Last update: 2023-12-08 07:08:12 UTC
README
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!