GithubHelp home page GithubHelp logo

pkamppur / dayone2-textbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bsingr/dayone2-textbundle

0.0 0.0 0.0 3.13 MB

DayOne2 TextBundle Conversion Utilities

License: MIT License

JavaScript 100.00%

dayone2-textbundle's Introduction

DayOne2 TextBundle Conversion Utilities

Build Status

This project was created to export and import multiple DayOne2 journals to other note-taking applications that support the TextBundle format such as Ulysses and Bear.

As of 2019 a lot of note-taking applications support the TextBundle format for data exchange. TextBundle is just a thin wrapper around Markdown with support for attachments (e.g. embedded images).

Sadly DayOne2 does not support TextBundle out of the box, this project solves this.

Features

  • Reads DayOne2 journal in JSON format
  • Converts into TextBundle .textbundle files (.textpack ZIP files also supported, but needs changing parameters in code)
  • Supports photo and PDF attachments

How To

  1. Export JSON zip from Day One: See here

  2. Extract zip contents

  3. Create output directory

  4. Run CLI tool dayone2-textbundle conversion for each Journal.json

       dayone2-textbundle <dayone2-export-json-file> <target-dir>
    
  5. Import .textbundle files to your favorite app

  6. Profit!

Supported Environments

Node.js 20+ and macOS (ok, because DayOne2 is macOS only ;-)).

Note: Linux or Windows might work, but things like creation dates might be broken.

Installation

This project uses and was tested with Node.js v20.

npm install dayone2-textbundle

Running locally without installing

If you've cloned repo locally, you can run converter using

npm i
npx dayone2-textbundle <dayone2-export-json-file> <target-dir>

Contribute

Make it pass npm test and npm lint, then send your pull-request ;-)

LICENSE

See LICENSE.

dayone2-textbundle's People

Contributors

bsingr avatar pkamppur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.