0.0.2 • Published 12 months ago

@barretter/anki-cli v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

anki cli

Sync your markdown directory to anki. If you change your markdown, run this command to sync it to anki.

Requirements

Usage

Install

pnpm install @barretter/anki-cli

Config

Add a command to your package.json. For example:

{
  "scripts": {
    "sync": "anki sync --dirPath=./docs/demo --rootDeckName=demo --ankiServiceUrl=http://127.0.0.1:8765"
  }
}

Run

pnpm run sync

Config

ConfigDescriptionTypeDefault
--dirPathsync dirnamestring./
--rootDeckNameanki root deck namestringnotes
--ankiServiceUrlanki connect HTTP server urlstringhttp://127.0.0.1:8765

Notes

Fork from anki. Thanks!

License

MIT