{"id":19559097,"url":"https://github.com/dijs/infobox-parser","last_synced_at":"2025-09-04T04:14:26.363Z","repository":{"id":51508345,"uuid":"88049124","full_name":"dijs/infobox-parser","owner":"dijs","description":"Parse Wikipedia Infoboxes","archived":false,"fork":false,"pushed_at":"2024-10-10T16:50:28.000Z","size":564,"stargazers_count":40,"open_issues_count":11,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T09:06:12.473Z","etag":null,"topics":["parser","wikipedia"],"latest_commit_sha":null,"homepage":null,"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/dijs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.buymeacoffee.com/2tmRKi9"]}},"created_at":"2017-04-12T12:27:14.000Z","updated_at":"2025-03-19T12:17:49.000Z","dependencies_parsed_at":"2024-06-18T15:30:09.815Z","dependency_job_id":"0dd8dc02-7323-4620-a75a-db8fb8906c46","html_url":"https://github.com/dijs/infobox-parser","commit_stats":{"total_commits":123,"total_committers":14,"mean_commits":8.785714285714286,"dds":0.2682926829268293,"last_synced_commit":"f6b7fb4ba8e5f7cb96143583325dcc85374d02ef"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dijs%2Finfobox-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dijs%2Finfobox-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dijs%2Finfobox-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dijs%2Finfobox-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dijs","download_url":"https://codeload.github.com/dijs/infobox-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157081,"owners_count":20893202,"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":["parser","wikipedia"],"created_at":"2024-11-11T04:50:02.539Z","updated_at":"2025-04-04T10:09:15.432Z","avatar_url":"https://github.com/dijs.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/2tmRKi9"],"categories":[],"sub_categories":[],"readme":"[![NPM Version](https://img.shields.io/npm/v/infobox-parser.svg)](https://www.npmjs.com/package/infobox-parser)\n[![Build Status](https://travis-ci.org/dijs/infobox-parser.svg)](https://travis-ci.org/dijs/infobox-parser)\n\n\u003ca href=\"https://www.buymeacoffee.com/2tmRKi9\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n## Infobox Parser\n\nThis was originally written as a companion module for `wikijs`. But it can work great on it's own as well. The main function of this module is parsing wikipedia article's infobox data. The infobox source is in wikitext format and\ndifficult to parse. This module analyzes it and outputs JSON for you.\n\n### Usage\n\n```js\nvar parseInfo = require(\"infobox-parser\")\n\nparseInfo(`\n{{Infobox Batman\n|name      = Bruce Wayne\n|hero      = y\n}}`);\n// Outputs {\n\tgeneral: {\n\t\thero: true,\n\t\tname: 'Bruce Wayne'\n\t}\n}\n```\n\n### Parsing Options\n\n```js\n/**\n * Parse Wiki Infobox Text\n * @param {string} source - Infobox source text\n * @param {Object} options - Parsing options\n * @param {boolean} [options.simplifyDataValues=true] - Only use primary data values\n * @param {boolean} [options.removeSmall=false] - Remove \u003csmall\u003e...\u003c/small\u003e chunks of source data\n * @param {boolean} [options.removeReferences=true] - Remove \u003cref\u003e...\u003c/ref\u003e chunks of source data\n * @returns {Object} Structured information from source text\n */\nconst info = parseInfo(source, options);\n```\n\n### Support\n\nIt supports many of wikipedia features, but not all yet. If there is a feature you need it to support, but it does not. Please create an issue and I will add the functionality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdijs%2Finfobox-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdijs%2Finfobox-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdijs%2Finfobox-parser/lists"}