{"id":22437203,"url":"https://github.com/we-lib/obj-html","last_synced_at":"2025-03-27T08:43:58.494Z","repository":{"id":20482835,"uuid":"23760863","full_name":"we-lib/obj-html","owner":"we-lib","description":"Parse js obj model to html","archived":false,"fork":false,"pushed_at":"2014-09-07T13:48:32.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T13:44:52.603Z","etag":null,"topics":[],"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/we-lib.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":"2014-09-07T13:48:11.000Z","updated_at":"2024-08-02T05:09:04.000Z","dependencies_parsed_at":"2022-07-31T21:38:06.343Z","dependency_job_id":null,"html_url":"https://github.com/we-lib/obj-html","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/we-lib%2Fobj-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-lib%2Fobj-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-lib%2Fobj-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-lib%2Fobj-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/we-lib","download_url":"https://codeload.github.com/we-lib/obj-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245813203,"owners_count":20676763,"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":[],"created_at":"2024-12-06T00:12:05.532Z","updated_at":"2025-03-27T08:43:58.473Z","avatar_url":"https://github.com/we-lib.png","language":"JavaScript","readme":"# obj-html\n\nParse js obj model to html\n\n## Usage\n\nExpected:\n\n```html\n\u003c!doctype html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003e\n      My Page\n    \u003c/title\u003e\n    \u003clink rel=\"stylesheet\" href=\"style.css\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"box\"\u003e\u003c/div\u003e\n    \u003cp\u003e\n      Bla bla bla..\n      \u003ci class=\"icon foo\"\u003e\u003c/i\u003e\n    \u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nParsing:\n\n```js\nvar parseHtml = require('obj-html')\nvar html = parseHtml(htmlObj)\nconsole.log(html)\n```\n\nSource:\n\n```js\n[\n  {\n    'tag': '!doctype',\n    'attrs': {\n      'html': true\n    }\n  },\n  {\n    'tag': 'html',\n    'children': [\n      {\n        'tag': 'head',\n        'children': [\n          {\n            'tag': 'meta',\n            'attrs': {\n              'charset': 'utf-8'\n            }\n          },\n          {\n            'tag': 'title',\n            'children': [\n              'My Page'\n            ]\n          },\n          {\n            'tag': 'link',\n            'attrs': [\n              'rel': 'stylesheet',\n              'href': 'style.css'\n            ]\n          }\n        ]\n      },\n      {\n        'tag': 'body',\n        'children': [\n          {\n            'tag': 'div',\n            'attrs': {\n              'id': 'box'\n            }\n          },\n          {\n            'tag': 'p',\n            'children': [\n              'Bla bla bla..',\n              {\n                'tag': 'i',\n                'attrs': {\n                  'class': 'icon foo'\n                }\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n]\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe-lib%2Fobj-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwe-lib%2Fobj-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe-lib%2Fobj-html/lists"}