https://github.com/2anki/csv-to-apkg
Convert CSV to Anki collections and decks
https://github.com/2anki/csv-to-apkg
Last synced: 4 months ago
JSON representation
Convert CSV to Anki collections and decks
- Host: GitHub
- URL: https://github.com/2anki/csv-to-apkg
- Owner: 2anki
- License: mit
- Created: 2023-09-14T17:34:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T17:59:57.000Z (over 1 year ago)
- Last Synced: 2025-08-18T16:41:17.224Z (10 months ago)
- Language: TypeScript
- Size: 789 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSV to APKG
A small library to convert CSV files to APKG files.
## Dependencies
This project is part of [2anki.net](https://2anki.net/) and uses the following dependencies:
- [2anki/create_deck](https://github.com/2anki/create_deck)
- [2anki/server](https://github.com/2anki/2anki.net)
Make sure these projects are available one level above this project:
```
git clone https://github.com/2anki/2anki.net ../server
git clone https://github.com/2anki/create_deck ../create_deck
```
## Install
> npm i @2anki/csv-to-apkg
## Usage
This project was developed using [TDD](https://www.goodreads.com/book/show/387190.Test_Driven_Development), so checkout the [tests](./src/csv-to-apkg.test.ts) for examples on expected usage.
## How does it work?
`csv-to-apkg` reads your comma delimited data. It takes the first column and treats it as the front of the card. The remaining columns are the back of the card.
## Limitations
Cloze deletion are not supported.
## License
Unless otherwise specified in the source:
The code is licensed under the [MIT](./LICENSE) Copyright (c) 2023, Alexander Alemayhu.