{"id":19432540,"url":"https://github.com/threemammals/gutenberg-to-react","last_synced_at":"2025-04-24T20:30:59.406Z","repository":{"id":35961228,"uuid":"220537886","full_name":"ThreeMammals/gutenberg-to-react","owner":"ThreeMammals","description":"Parse Wordpress Gutenberg post_content to a React tree","archived":false,"fork":false,"pushed_at":"2023-01-04T13:00:37.000Z","size":752,"stargazers_count":6,"open_issues_count":26,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-25T21:30:40.534Z","etag":null,"topics":["gutenberg","react","reactjs","wordpress"],"latest_commit_sha":null,"homepage":"https://threemammals.com","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/ThreeMammals.png","metadata":{"files":{"readme":"README.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}},"created_at":"2019-11-08T19:53:45.000Z","updated_at":"2024-03-25T21:30:40.535Z","dependencies_parsed_at":"2023-01-16T09:53:56.920Z","dependency_job_id":null,"html_url":"https://github.com/ThreeMammals/gutenberg-to-react","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeMammals%2Fgutenberg-to-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeMammals%2Fgutenberg-to-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeMammals%2Fgutenberg-to-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeMammals%2Fgutenberg-to-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThreeMammals","download_url":"https://codeload.github.com/ThreeMammals/gutenberg-to-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223967045,"owners_count":17233325,"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":["gutenberg","react","reactjs","wordpress"],"created_at":"2024-11-10T14:36:19.159Z","updated_at":"2024-11-10T14:36:19.836Z","avatar_url":"https://github.com/ThreeMammals.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gutenberg to React\n\nThis package allows you to convert Wordpress Gutenbergs post_content field on the post object to a ReactJs tree.\n\n[![CircleCI](https://circleci.com/gh/ThreeMammals/gutenberg-to-react/tree/master.svg?style=svg)](https://circleci.com/gh/ThreeMammals/gutenberg-to-react/tree/master)\n\n## Why\n\nMadness.\n\n## Install\n\n`npm install @threemammals/gutenberg-to-react`\n\n## How To\n\n```javascript\nconst { gutenbergToReact } = require('@threemammals/gutenberg-to-react');\n\n// example of Wordpress Gutenberg post_content from the post object\nconst input = '\u003c!-- wp:paragraph --\u003e\\n\u003cp\u003etext \u003cbr\u003e\u003c/p\u003e\\n\u003c!-- /wp:paragraph --\u003e';\n\n// parse to ReactJs tree\nconst result = gutenbergToReact(input);\n\n// check out your ReactJs tree?!?!?\nconsole.log(result);\n[\n  {\n    type: 'core/paragraph',\n    ref: null,\n    '$$typeof': Symbol(react.element),\n    props: { style: {}, className: null, children: [Array] }\n  }\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreemammals%2Fgutenberg-to-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreemammals%2Fgutenberg-to-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreemammals%2Fgutenberg-to-react/lists"}