### Install anki-to-json module Source: https://github.com/craiggleso/anki-to-json/blob/master/README.md Instructions on how to install the 'anki-to-json' module using npm or Yarn, both for local project dependencies and global command-line access. ```sh # NPM npm install --save anki-to-json # Yarn yarn add anki-to-json # GLOBAL # NPM npm install -g anki-to-json # YARN yarn global add anki-to-json ``` -------------------------------- ### Use anki-to-json in NodeJS applications Source: https://github.com/craiggleso/anki-to-json/blob/master/README.md Shows how to import and use the 'anki-to-json' module within a NodeJS application, providing examples for both ES6 import and CommonJS 'require' syntax. The function takes an input Anki file path and an output directory path. ```js // ES6 import ankiToJson from 'anki-to-json' // ES5 const ankiToJson = require('anki-to-json').default ankiToJson(inputFile, outputDir) ``` -------------------------------- ### Use anki-to-json via command line Source: https://github.com/craiggleso/anki-to-json/blob/master/README.md Demonstrates how to use the 'anki-to-json' tool directly from the command line, specifying an input Anki package file (.apkg) and an output directory for the extracted data. ```sh ankiToJson jp_core_2000_1.apkg output_directory ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.