{"id":20986078,"url":"https://github.com/douglasduteil/hyperhtml-serializer","last_synced_at":"2025-05-14T17:32:38.101Z","repository":{"id":32712453,"uuid":"140861528","full_name":"douglasduteil/hyperhtml-serializer","owner":"douglasduteil","description":"Jest snapshot serializer that beautifies hyperHTML snapshots.","archived":false,"fork":false,"pushed_at":"2024-10-24T16:39:19.000Z","size":1561,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-26T07:01:29.594Z","etag":null,"topics":["hyperhtml","jest","serializer","snapshot","testing"],"latest_commit_sha":null,"homepage":"","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/douglasduteil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2018-07-13T15:06:55.000Z","updated_at":"2024-09-19T18:46:19.000Z","dependencies_parsed_at":"2023-02-15T00:31:15.271Z","dependency_job_id":"5822624a-866f-450f-9515-e514c6c1fded","html_url":"https://github.com/douglasduteil/hyperhtml-serializer","commit_stats":{"total_commits":161,"total_committers":6,"mean_commits":"26.833333333333332","dds":0.6211180124223603,"last_synced_commit":"50554c7b1e54cbbcf68ee25ddf840f43c54e8d4f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasduteil%2Fhyperhtml-serializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasduteil%2Fhyperhtml-serializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasduteil%2Fhyperhtml-serializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasduteil%2Fhyperhtml-serializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douglasduteil","download_url":"https://codeload.github.com/douglasduteil/hyperhtml-serializer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225157000,"owners_count":17429698,"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":["hyperhtml","jest","serializer","snapshot","testing"],"created_at":"2024-11-19T06:12:06.747Z","updated_at":"2024-11-19T06:12:06.812Z","avatar_url":"https://github.com/douglasduteil.png","language":"JavaScript","readme":"# hyperhtml-serializer\n\n[![CI][gha-image]][gha-url]\n[![NPM version][npm-image]][npm-url]\n[![Conventional Commits][conventional-commits-image]][conventional-commits-url]\n[![codecov][codecov-image]][codecov-url]\n\n\u003e [Jest](https://github.com/facebook/jest) snapshot serializer that beautifies [hyperHTML](https://github.com/WebReflection/hyperHTML) snapshots.\n\n## Note\n\n**This version is working with `hyperhtml` version `\u003e=2.19`**  \nFor [`hyperhtml@2.4 - 2.18` versions consult the `1.x` branch](https://github.com/douglasduteil/hyperhtml-serializer/tree/1.x)\n\n## Why ?\n\nThis serializer it made to remove :\n\n- hyperHTML `_hyper` comments like `\u003c!--_hyper: (\\d+);--\u003e`\n\nBefore :\n\n```js\n\u003cfoo-hyper-app\u003e\n  \u003c!-- This is my comment --\u003e\n  \u003ch1\u003eHello hyperHTML !\u003c/h1\u003e\n  \u003c!--_hyper: 123546789;--\u003e\n  \u003ch1\u003eHello world !\u003c/h1\u003e\n  \u003c!--_hyper: 123546789;--\u003e\n\u003c/foo-hyper-app\u003e\n```\n\nAfter :\n\n```js\n\u003cfoo-hyper-app\u003e\n  \u003c!-- This is my comment --\u003e\n  \u003ch1\u003eHello hyperHTML !\u003c/h1\u003e\n\n  \u003ch1\u003eHello world !\u003c/h1\u003e\n\n\u003c/foo-hyper-app\u003e\n```\n\n## Install\n\n```sh\n$ npm install --save-dev hyperhtml-serializer\n# or\n$ yarn add -D hyperhtml-serializer\n```\n\n## Usage\n\nAdd in your `package.json`.\n\n```json\n{\n  \"jest\": {\n    \"snapshotSerializers\": [\"hyperhtml-serializer\"]\n  }\n}\n```\n\n## License\n\n    Copyright © 2018 Douglas Duteil \u003cdouglasduteil@gmail.com\u003e\n    This work is free. You can redistribute it and/or modify it under the\n    terms of the Do What The Fuck You Want To Public License, Version 2,\n    as published by Sam Hocevar. See the LICENCE file for more details.\n\n[codecov-url]: https://codecov.io/gh/douglasduteil/hyperhtml-serializer\n[codecov-image]: https://codecov.io/gh/douglasduteil/hyperhtml-serializer/branch/master/graph/badge.svg?token=ErvTZOUIxp\n[npm-url]: https://npmjs.org/package/hyperhtml-serializer\n[npm-image]: http://img.shields.io/npm/v/hyperhtml-serializer.svg\n[gha-url]: https://github.com/douglasduteil/hyperhtml-serializer/actions/workflows/ci.yml\n[gha-image]: https://github.com/douglasduteil/hyperhtml-serializer/actions/workflows/ci.yml/badge.svg\n[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg\n[conventional-commits-url]: https://conventionalcommits.org*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasduteil%2Fhyperhtml-serializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglasduteil%2Fhyperhtml-serializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasduteil%2Fhyperhtml-serializer/lists"}