{"id":20457290,"url":"https://github.com/plus1tv/bibtex-bibjson","last_synced_at":"2025-04-13T05:13:53.299Z","repository":{"id":40705455,"uuid":"195728410","full_name":"plus1tv/bibtex-bibjson","owner":"plus1tv","description":"📚 A tool to convert BibTeX documents to BibJSON.","archived":false,"fork":false,"pushed_at":"2023-03-31T00:04:43.000Z","size":1710,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T05:13:42.709Z","etag":null,"topics":["bibjson","bibtex","converter","json","latex","parser","transpiler"],"latest_commit_sha":null,"homepage":"https://codepen.io/alaingalvan/pen/agjaLo","language":"PEG.js","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/plus1tv.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-08T03:13:09.000Z","updated_at":"2023-08-03T19:04:47.000Z","dependencies_parsed_at":"2023-02-06T15:00:26.894Z","dependency_job_id":null,"html_url":"https://github.com/plus1tv/bibtex-bibjson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fbibtex-bibjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fbibtex-bibjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fbibtex-bibjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plus1tv%2Fbibtex-bibjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plus1tv","download_url":"https://codeload.github.com/plus1tv/bibtex-bibjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665746,"owners_count":21142123,"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":["bibjson","bibtex","converter","json","latex","parser","transpiler"],"created_at":"2024-11-15T12:06:29.112Z","updated_at":"2025-04-13T05:13:53.278Z","avatar_url":"https://github.com/plus1tv.png","language":"PEG.js","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BibTex-BibJson\n\n[![Npm Package][npm-img]][npm-url]\n[![License][license-img]][license-url]\n\n## Installation\n\n```bash\nnpm i bibtex-bibjson -S\n```\n\nA tool to convert BibTeX citations to [BibJSON](http://okfnlabs.org/bibjson/).\n\n## Usage \u0026 Demo\n\nCheck out our [Demo](https://codepen.io/alaingalvan/pen/agjaLo) to try it out for yourself!\n\n```ts\nimport { openFileSync } from 'fs';\nimport { parse } from 'bibtex-bibjson';\n\n// Read file as string\nlet bibTexStr = openFileSync('./citations.bib');\n\n// {} Convert to BibJson\n// function parse(bibTexStr: string): object\nlet bibJson: Object = parse(bibTexStr);\n```\n\n### Example\n\n```bib\n@article{hasselgren2020,\n    author = {Hasselgren, Jon and Munkberg, J. and Salvi, Marco and Patney, A. and Lefohn, Aaron},\n    year = {2020},\n    title = {Neural Temporal Adaptive Sampling and Denoising},\n    journal = {Computer Graphics Forum}\n}\n```\n\nBecomes:\n\n```json\n{\n    \"hasselgren2020\": {\n        \"author\": [\n            { \"name\": \"Jon Hasselgren\" },\n            { \"name\": \"J. Munkberg\" },\n            { \"name\": \"Marco Salvi\" },\n            { \"name\": \"A. Patney\" },\n            { \"name\": \"Aaron Lefohn\" }\n        ],\n        \"year\": 2020,\n        \"title\": \"Neural Temporal Adaptive Sampling and Denoising\",\n        \"journal\": \"Computer Graphics Forum\"\n    }\n}\n```\n\n## License\n\nbibtex-bibjson is licensed as either **MIT** or **Apache-2.0**, whichever you would prefer.\n\n[npm-img]: https://img.shields.io/npm/v/bibtex-bibjson.svg?style=flat-square\n[npm-url]: http://npm.im/bibtex-bibjson\n[license-img]: https://img.shields.io/:license-mit-blue.svg?style=flat-square\n[license-url]: https://opensource.org/licenses/MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplus1tv%2Fbibtex-bibjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplus1tv%2Fbibtex-bibjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplus1tv%2Fbibtex-bibjson/lists"}