npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

thl-export

v1.1.2

Published

The Hist List Exporter

Downloads

8

Readme

The Hit List Exporter

A tool to export your hit lists from Andy Kim's The Hit List todo list app. Supports both JSON and Markdown export.

Usage:
  thl-export [-m] <thl-sqlitepath> <export-destination>

  -m --markdown  outputs markdown files instead of json files

Install

If you have NPM installed, the preferred way is to install using:

  1. npm i -g thl-export

And then run the thl-export command according to the Usage instructions below.

You can also run the command from the source code of this project by cloning this repo and using these instructions instead:

  1. First install Node.js with your favorite package manager
  2. Clone this repo
  3. Run npm install inside of it
  4. Run using node index.mjs (instead of using thl-export)

Usage

The Hit List stores its library inside of a file called either The Hit List.thllibrary or The Hit List Library.thllibrary.

This file is typically stored here:

/Users/[your username]/Library/Application Support/The Hit List

When you find that file, right-click on it and choose Show Package Contents. Inside of the folder that appears will be a file called library.sqlite3. This is the file that we want.

You can drag this file onto a Terminal window to get its filepath and also to pass it in as the first argument to the thl-export command.

Here's an example of how to export our library as JSON (assuming we found it inside of a file called The Hit List.thllibrary):

$ thl-export ~/Library/Application\ Support/The\ Hit\ List/The\ Hit\ List.thllibrary/library.sqlite3 export

And here's an example for how to export using Markdown instead of JSON:

$ thl-export -m ~/Library/Application\ Support/The\ Hit\ List/The\ Hit\ List.thllibrary/library.sqlite3 export

This will create a directory called export in the current directory, and save all your lists into that folder while making sure to:

  • Preserve your hierarchy of folders
  • Preserve your hierarchy of tasks, as well as the notes inside of them

Exporting attached files is not exported. (Feel free to send PRs).

JSON vs Markdown export

  • With JSON, you can view and manipulate the JSON files using the jq command.
  • Markdown export currently does not include completed or crossed-off items, only pending TODOs. Use JSON if you want those, or submit a PR that adds a command-line option to include them.

License

AGPL-3.0.

History

  • 1.1.2 - Add better error handling.
  • 1.1.1 - Don't include <details> if note contains < symbol.
  • 1.1.0 - Hide notes using <details> in markdown files.
  • 1.0.1 - Replace $ with \$ in tasks in markdown files for proper rendering.
  • 1.0.0 - Added markdown support via -m.
  • 0.0.2 - Attempt at fixing npm tool install.
  • 0.0.1 - Initial release.