anki-apkg-export-cli
CLI for generating Anki's decks
Install
$ npm install anki-apkg-export-cli -g
Usage
$ anki-apkg-export
Usage
$ anki-apkg-export "<glob-filter>"
Options
--groups Split files by empty lines
Examples
$ anki-apkg-export **/*.txt
$ anki-apkg-export **/*.txt --groups
One line example
$ cat dict.txt
Source 1 - Translation 1
Source 2 - Translation 2
$ anki-apkg-export *.txt
card 1
front:
Source 1
back:
Translation 1
card 2
front:
Source 2
back:
Translation 2
Groups example
$ cat dict.txt
Source 1 - Translation 1
Example 1-1 - Example Translation 1-1
Example 1-2 - Example Translation 1-2
Source 2 - Translation 2
Example 2-1 - Example Translation 2-1
$ anki-apkg-export *.txt --groups
card 1:
front:
Source 1
Example 1-1
Example 1-2
back:
Translation 1
Example 1-1 - Example Translation 1-1
Example 1-2 - Example Translation 1-2
card 2
front:
Source 2
Example 2-1
back:
Translation 2
Example 2-1 - Example Translation 2-1
Related
License
MIT © ewnd9