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

google-tasks-taskwarrior-import

v0.0.2

Published

Import tasks from a Google Takeout of Google Tasks (JSON) into Taskwarrior (CLI).

Downloads

31

Readme

Import From Google Tasks To Taskwarrior

🚨 Danger Zone: This software is battle tested. We here at Import Google Tasks To Taskwarrior do hope it saves you some time and frustration, but please don't blindly run it against your production database (of tasks). It has been used successfully on macOS 10.13.5 (17F77) with node v10.4.0 and task 2.5.1.

What It Does

Reads a JSON export from Google Takeout of Google Tasks and runs Taskwarrior shell commands (task) on your system to import the tasks.

  • Each "list" from Google Tasks is added verbatim as the project: for the task in the Taskwarrior command.

    Protip: If your task lists in Google Tasks contain Emojis and such, best sanitize those out of your JSON payload first.

  • If a task contains notes (the text box below with extra details), they are added as a single annotation

  • Subtasks for a Google Task are added as dependencies of their parent task using depends:.

  • All imported tasks are assigned a Taskwarrior tag "googleTasks" (+googleTasks) to keep track of what was imported.

    Protip: If you want to further modify tasks after importing, run task +googleTasks modify [[YOUR MODS]] to do them all at once.

  • Completed tasks from the Google export are still added, using the task log command to mark them as done on arrival.

What It Might Do Later

  • [ ] Use chalk for nice output
  • [ ] Annotate every task with the original JSON
  • [ ] Support due dates
  • [ ] Handle adding indented tasks from Google as blocking tasks in Taskwarrior
  • [ ] Deal with tasks that are linked to Gmail messages
  • [ ] Have an option to pull directly from the Google Tasks API

Usage

npm install -g google-tasks-taskwarrior-import
google-tasks-taskwarrior-import ~/path/to/Tasks.json
# profit

Troubleshooting

There isn't much error handling, due to budget concerns for the current fiscal. If an import exits with errors, you can likely run task +googleTasks delete to destroy all imported tasks and try again after debugging.