{"id":15134639,"url":"https://github.com/eccenux/wiki-to-git","last_synced_at":"2025-10-23T11:30:40.981Z","repository":{"id":180484977,"uuid":"665157143","full_name":"Eccenux/wiki-to-git","owner":"Eccenux","description":"Node.js tool that helps to download Mediwiki page history and push it to a Git repository.","archived":false,"fork":false,"pushed_at":"2023-10-22T22:23:47.000Z","size":214,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T18:01:50.033Z","etag":null,"topics":["gadgets","git","mediawiki","wikipedia"],"latest_commit_sha":null,"homepage":"https://enux.pl/project/en/wiki-git-wiki2git","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eccenux.png","metadata":{"files":{"readme":"README-classes.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T15:00:34.000Z","updated_at":"2025-01-18T11:31:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"74923ef1-003e-477c-a32b-318f0f945f12","html_url":"https://github.com/Eccenux/wiki-to-git","commit_stats":null,"previous_names":["eccenux/wiki-to-git"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eccenux%2Fwiki-to-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eccenux%2Fwiki-to-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eccenux%2Fwiki-to-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eccenux%2Fwiki-to-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eccenux","download_url":"https://codeload.github.com/Eccenux/wiki-to-git/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237811560,"owners_count":19370150,"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":["gadgets","git","mediawiki","wikipedia"],"created_at":"2024-09-26T05:23:21.823Z","updated_at":"2025-10-23T11:30:35.668Z","avatar_url":"https://github.com/Eccenux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wiki to Git\n==========================\n\u003cimg align=\"right\" width=\"150\" height=\"150\" src=\"https://raw.githubusercontent.com/Eccenux/wiki-to-git/main/assets/wiki-to-git-logo.svg\"\u003e\n\nUsing `Wiki To Git` classes.\n\nI recommend using cmd tools, but you can also use a Node script if you prefer.\n\n## Creating your script\n\nYour export script should use `wiki-to-git` to create a new git repo.\n\nMost of the time you will only need to change the top configuration from the snippet below.\n```js\nimport { LoadData } from 'wiki-to-git';\n\n//\n// Config.\n// change this values to your needs\nconst site = 'en.wikipedia.org';\nconst page = 'MediaWiki:Gadget-exampleGadgetScript.js';\nconst repoName = 'wiki-exampleGadgetScript';\nconst filename = 'exampleGadgetScript.js';\n\nconst loader = new LoadData(site);\n\n/**\n * Download page history from a MediaWiki site.\n */\nconsole.log('\\n\\nDownload history for %s.', page);\n// this will load\nawait loader.load(page);\n// this will save history as JSON\nawait loader.saveHistory();\n// this just shows a quick info (you can skip this)\nloader.info();\n\n// You only need to read JSON if you changed it.\n// Use load (and saveHistory) xor readHistory.\n/**\n * Read page history from JSON.\n *\nloader.history = [];\nawait loader.readHistory();\nloader.info();\n\n/**\n * Create Git repo.\n */\nconsole.log('\\n\\nCreating Git repo (%s).', repoName);\nloader.repoCreate(repoName);\nconsole.log('\\nSave history as %s.', filename);\nloader.repoCommit(repoName, filename);\n```\n\nThat's it. Run this script in Node.js and you are done.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feccenux%2Fwiki-to-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feccenux%2Fwiki-to-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feccenux%2Fwiki-to-git/lists"}