{"id":18910053,"url":"https://github.com/cheton/html5-tag","last_synced_at":"2025-04-15T06:31:06.068Z","repository":{"id":57267902,"uuid":"60960980","full_name":"cheton/html5-tag","owner":"cheton","description":"A simple utility for creating HTML5 tags.","archived":false,"fork":false,"pushed_at":"2017-06-13T10:13:09.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T16:26:32.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cheton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-12T10:19:13.000Z","updated_at":"2022-03-01T01:56:30.000Z","dependencies_parsed_at":"2022-08-31T00:01:40.327Z","dependency_job_id":null,"html_url":"https://github.com/cheton/html5-tag","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Fhtml5-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Fhtml5-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Fhtml5-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Fhtml5-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheton","download_url":"https://codeload.github.com/cheton/html5-tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246736733,"owners_count":20825494,"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-11-08T09:39:10.313Z","updated_at":"2025-04-15T06:31:06.049Z","avatar_url":"https://github.com/cheton.png","language":"JavaScript","readme":"# html5-tag [![build status](https://travis-ci.org/cheton/html5-tag.svg?branch=master)](https://travis-ci.org/cheton/html5-tag) [![Coverage Status](https://coveralls.io/repos/github/cheton/html5-tag/badge.svg?branch=master)](https://coveralls.io/github/cheton/html5-tag?branch=master)\n[![NPM](https://nodei.co/npm/html5-tag.png?downloads=true\u0026stars=true)](https://www.npmjs.com/package/html5-tag)\n\nA simple utility for creating HTML5 tags.\n\n## Installation\n\n```bash\nnpm install --save html5-tag\n```\n\n## Usage\n```js\nimport tag from 'html5-tag';\n\n// No end tags for void elements (https://www.w3.org/TR/html5/syntax.html#void-elements)\ntag('br');\n// → '\u003cbr\u003e'\n\ntag('a', { href: 'http://example.com' }, 'Example');\n// → '\u003ca href=\"http://example.com\"\u003eExample\u003c/a\u003e'\n\ntag('input', { name: 'name', value: 'Input your name...', disabled: true });\n// → '\u003cinput name=\"name\" value=\"Input your name...\" disabled\u003e'\n\ntag('div', { title: '\\'\"\u0026\u003c\u003e' }, tag('i', { class: 'icon icon-folder' }, ''));\n// → '\u003cdiv title=\"\u0026#39;\u0026quot;\u0026amp;\u0026lt;\u0026gt;\"\u003e\u003ci class=\"icon icon-folder\"\u003e\u003c/i\u003e\u003c/div\u003e'\n\n// Defaults to 'div' if tag is not specified\ntag({ class: 'container' }, 'container text');\n// → '\u003cdiv class=\"container\"\u003econtainer text\u003c/div\u003e'\n```\n\n## License\n\nCopyright (c) 2016 Cheton Wu\n\nLicensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":["Utilities"],"sub_categories":["React Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Fhtml5-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheton%2Fhtml5-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Fhtml5-tag/lists"}