{"id":28560635,"url":"https://github.com/sr258/h5p-cli-creator","last_synced_at":"2025-06-10T09:38:04.323Z","repository":{"id":42589122,"uuid":"133072274","full_name":"sr258/h5p-cli-creator","owner":"sr258","description":"Utility to mass create H5P content from the command line","archived":false,"fork":false,"pushed_at":"2023-04-24T13:39:01.000Z","size":3735,"stargazers_count":35,"open_issues_count":7,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-04T19:37:09.602Z","etag":null,"topics":["h5p"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr258.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-11T18:01:00.000Z","updated_at":"2025-05-15T23:10:34.000Z","dependencies_parsed_at":"2023-02-10T01:16:40.677Z","dependency_job_id":null,"html_url":"https://github.com/sr258/h5p-cli-creator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-cli-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-cli-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-cli-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-cli-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr258","download_url":"https://codeload.github.com/sr258/h5p-cli-creator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr258%2Fh5p-cli-creator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259049772,"owners_count":22798025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["h5p"],"created_at":"2025-06-10T09:37:27.551Z","updated_at":"2025-06-10T09:38:04.309Z","avatar_url":"https://github.com/sr258.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# h5p-cli-creator\n\nThis is a command line utility that allows you to mass create H5P content from input files using the command line. It is written in TypeScript and runs on NodeJS, meaning it's platform independent. Currently, it supports the *Flashcards* and *Dialog Cards* content type, but you can use the infrastructure provided here to add functionality for other content types. Pull requests are welcomed!\n\n## Run\n* Install [NodeJS](https://nodejs.org/)\n* [clone this repository](https://help.github.com/articles/cloning-a-repository/) into a directory on your computer\n* Execute these commands from the command line at the directory you've cloned into:\n* `npm install` to install dependencies\n* `npm run build` to transpile typescript to javascript\n* `node ./dist/index.js --help` to get help\n* `node ./dist/index.js flashcards --help` to get help for creating flashcards\n* `node ./dist/index.js dialogcards --help` to get help for creating flashcards\n\n## Example calls\n`node ./dist/index.js flashcards ./tests/flash1.csv ./outputfile.h5p -l=de -t=\"Meine Karteikarten\" --description=\"\\\"Schreibe die Übersetzungen in das Eingabefeld.\\\"\"`\n\nReads the file `flash1.csv` in the `tests` directory and outputs a h5p file with the filename `outputfile.h5p` in the current directory. The language strings will be set to German, the title 'Meine Karteikarten' and the description displayed when studying the flashcards will be 'Schreibe die Übersetzungen in das Eingabefeld.'\n\n`node ./dist/index.js dialogcards ./tests/dialog1.csv ./outputfile.h5p -l=de -n=\"Meine Karteikarten\" -m=\"repetition\"`\n\nReads the file `dialog1.csv` in the `tests` directory and outputs a h5p file with the filename `outputfile.h5p` in the current directory. The language strings will be set to German and the title to 'Meine Karteikarten'.\n\n## Coding conventions\nAll classes that exist in the actual H5P libraries or content types start with `H5p`, e.g. `H5pImage`. All classes that are part of the creator and don't exist in external libraries or content types don't start with this prefix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fh5p-cli-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr258%2Fh5p-cli-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr258%2Fh5p-cli-creator/lists"}