{"id":16885515,"url":"https://github.com/matthewmueller/pretty-html","last_synced_at":"2025-07-08T20:32:41.165Z","repository":{"id":13693335,"uuid":"16387159","full_name":"matthewmueller/pretty-html","owner":"matthewmueller","description":"HTML logging that's easy on the eyes.","archived":false,"fork":false,"pushed_at":"2014-02-04T15:11:59.000Z","size":196,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T12:59:36.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://matthewmueller.github.io/pretty-html/","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/matthewmueller.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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-01-30T18:52:42.000Z","updated_at":"2016-07-19T11:59:09.000Z","dependencies_parsed_at":"2022-08-29T23:41:43.568Z","dependency_job_id":null,"html_url":"https://github.com/matthewmueller/pretty-html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matthewmueller/pretty-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpretty-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpretty-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpretty-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpretty-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewmueller","download_url":"https://codeload.github.com/matthewmueller/pretty-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpretty-html/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264343798,"owners_count":23593792,"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-10-13T16:35:45.284Z","updated_at":"2025-07-08T20:32:41.139Z","avatar_url":"https://github.com/matthewmueller.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pretty-html\n\n  html logging that's easy on the eyes.\n\n  **HTML View:**\n\n  ![html view](https://i.cloudup.com/6zFvalrj3D.png)\n\n  **Text View:**\n\n  ![text view](https://i.cloudup.com/3v6N5qYaMv.png)\n\n## Installation\n\n  Install with [component(1)](http://component.io):\n\n    $ component install matthewmueller/pretty-html\n\n  Or with node:\n\n    $ npm install pretty-html\n\n## Example\n\n```js\n// html format\nout.innerHTML = pretty(document.body).html();\n\n// text format\nconsole.log(pretty(document.body).text());\n```\n\n## API\n\n### `pretty(dom)`\n\nAdd the DOM node you want to format.\n\n### `pretty.html()`\n\nReturn a formatted html string of the element, showing all text and element nodes. The output's style is completely customizable. Take a look at `pretty.css` to see some of the options.\n\n### `pretty.text()`\n\nReturn a formatted text string of the element, showing all text and element nodes.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fpretty-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewmueller%2Fpretty-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fpretty-html/lists"}