All Projects → NdYAG → anki-apkg

NdYAG / anki-apkg

Licence: MIT license
Create .apkg file for Anki

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to anki-apkg

anki-md
A markdown to anki flash cards converter
Stars: ✭ 22 (-12%)
Mutual labels:  anki
AnnA Anki neuronal Appendix
Using machine learning on your anki collection to enhance the scheduling via semantic clustering and semantic similarity
Stars: ✭ 39 (+56%)
Mutual labels:  anki
google-translate-anki
No description or website provided.
Stars: ✭ 28 (+12%)
Mutual labels:  anki
manjaro-fs-arm64
Manjaro rootfs with xfce4 and vncserver preinstalled. Just setup username, password and vnc password. Also one more edition with latest Anki preinstalled.
Stars: ✭ 19 (-24%)
Mutual labels:  anki
SmartReview
💠 单词智能复习项目 - 艾宾浩斯遗忘曲线 + 混淆词
Stars: ✭ 43 (+72%)
Mutual labels:  anki
anki-markdown-notes
Anki add-on to extract notes from markdown files and import them to Anki
Stars: ✭ 34 (+36%)
Mutual labels:  anki
AnkiSharp
Create anki decks and cards from your C# application
Stars: ✭ 39 (+56%)
Mutual labels:  anki
files2flashcards
Keep your flashcards rooted in the context of your notes
Stars: ✭ 28 (+12%)
Mutual labels:  anki
frozen-fields
A fork of Tiago Barroso's Frozen Fields add-on with support for Anki 2.1
Stars: ✭ 22 (-12%)
Mutual labels:  anki
notes
A miscellany of thoughts.
Stars: ✭ 18 (-28%)
Mutual labels:  anki
ankigenbot
Telegram bot to automatically generate and upload anki cards to ankisrs.net
Stars: ✭ 58 (+132%)
Mutual labels:  anki
ScienceNotebooks
Collection of tools and stylesheet for scientific writting and learning (through Anki)
Stars: ✭ 43 (+72%)
Mutual labels:  anki
speed-focus-mode
Speed Focus Mode add-on for Anki
Stars: ✭ 19 (-24%)
Mutual labels:  anki
logseq-anki-sync
An logseq to anki syncing plugin with superpowers - image occlusion, card direction, incremental cards, and a lot more.
Stars: ✭ 219 (+776%)
Mutual labels:  anki
AnkigaokaoTutorial
一本结合高考的 Anki 入门书
Stars: ✭ 48 (+92%)
Mutual labels:  anki
mpvacious
Adds mpv keybindings to create Anki cards from movies and TV shows.
Stars: ✭ 286 (+1044%)
Mutual labels:  anki
anki2orgdrill
Python package to convert Anki style flashcards to Emacs org-drill format
Stars: ✭ 18 (-28%)
Mutual labels:  anki
kian
Alternative desktop frontend for Anki2
Stars: ✭ 33 (+32%)
Mutual labels:  anki
ankimaker
Automatically generates Anki decks from many sources
Stars: ✭ 43 (+72%)
Mutual labels:  anki
anki tools
No description or website provided.
Stars: ✭ 32 (+28%)
Mutual labels:  anki

anki-apkg

anki-apkg is highly inspired by anki-apkg-export and works almost the same, then why a new package?

Because I'm not satisfied with only creating {{front}} and {{back}} field for a card, this package is created to make it possible to customize fields (and any other variables of a deck or card in the future).

npm install anki-apkg
const { APKG } = require('anki-apkg')

const apkg = new APKG({
    name: 'VocabularyBuilder',
    card: {
        fields: ['word', 'meaning', 'usage'],
        template: {
            question: '{{word}}',
            answer: `
              <div class="word">{{word}}</div>
              <div class="meaning">{{meaning}}</div>
              <div class="usage">{{usage}}</div>
            `
        },
        styleText: '.card { text-align: center; }'
    }
})
apkg.addCard({
    timestamp: +new Date(), // create time
    content: ['sample word', 'sample meaning', 'sample usage'] // keep the order same as `fields` defined above
})
apkg.save(__dirname)

Media

You can add media files to packages using

apkg.addMedia(filename: string, data: Buffer)
const { readFileSync } = require('fs')
const { join } = require('path')

const { APKG } = require('../')

const apkg = new APKG({
    name: 'UnicornBuilder',
    card: {
        fields: ['question', 'result'],
        template: {
            question: '{{question}}',
            answer: `{{result}}`
        }
    }
})
apkg.addCard({
    content: ['What happens if you eat too many skittles?', '<img src="unicorn.gif" />']
})
apkg.addMedia('unicorn.gif', readFileSync(join(__dirname, 'media/unicorn.gif')))
apkg.save(__dirname)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].