anki-js

Add some light functionality to Anki flash cards (via JS in flash cards).

Usage no npm install needed!

<script type="module">
  import ankiJs from 'https://cdn.skypack.dev/anki-js';
</script>

README

anki-js

NPM version node dependencies License MIT

NPM

anki-js add some light functionality to Anki flash cards (current time, spent time for current card, fix RU keyboard layout).
It use ES3 JS-code, so it work on all platforms (Windows, Linux, iOS, AnkiDroid).

Usage

You need a node version >=6.0.0.
Build project, then copy text of build/out.txt to the end of Anki front card template (for each card type), and src/main.css to card styles.

For switching off "input text fixing" print space as first symbol of string.

Build

$ npm run build

For adding autoreplacing english letters on russian use param 'ru':

$ npm run build ru

Tests

$ npm install
$ npm run build
$ npm test

License

MIT