anki-apkg-export-cli

2.0.1 • Public • Published

anki-apkg-export-cli

Build Status

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

License

MIT © ewnd9

Readme

Keywords

Package Sidebar

Install

npm i anki-apkg-export-cli

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • ewnd9