{"id":15561898,"url":"https://github.com/doodzik/javascript-html-tags","last_synced_at":"2025-03-29T04:43:12.797Z","repository":{"id":74936854,"uuid":"72342129","full_name":"doodzik/javascript-html-tags","owner":"doodzik","description":"create html programmatically with javascript","archived":false,"fork":false,"pushed_at":"2017-10-23T09:26:42.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T14:32:09.671Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doodzik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-30T10:15:57.000Z","updated_at":"2016-10-30T13:37:01.000Z","dependencies_parsed_at":"2023-02-24T20:00:31.274Z","dependency_job_id":null,"html_url":"https://github.com/doodzik/javascript-html-tags","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2ec557a7c4b4ba2da1d452270add2b437ba0c353"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fjavascript-html-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fjavascript-html-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fjavascript-html-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodzik%2Fjavascript-html-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodzik","download_url":"https://codeload.github.com/doodzik/javascript-html-tags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140540,"owners_count":20729797,"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-02T16:10:35.659Z","updated_at":"2025-03-29T04:43:12.778Z","avatar_url":"https://github.com/doodzik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript HTML Tags\r\n\r\nCreate valid HTML with ease. Each HTML tag is a function with the same interface.\r\n\r\n## Installation\r\n\r\n```\r\nnpm i javascript-html-tags --save\r\n```\r\n\r\n## Usage\r\n\r\n```\r\nconst {html, head, style, body, div, ...tags} = require('javascript-html-tags')\r\n\r\nconst cssRules = '.red{color:red}'\r\n\r\nhtml(head(style(cssRules)),\r\n      body(div({class: 'red'}, 'hello'),\r\n          div('world!')))\r\n```\r\n\r\n## API\r\n\r\nAll arguments are concatenated. If the first one is an Object it will be interpreted as the html tags keys and values.\r\n\r\nThe ones with defaults are:\r\n* style -\u003e defaults to css\r\n* script -\u003e defaults to js\r\n\r\nNone tags are:\r\n* xid -\u003e returns a concatenated string of the arguments\r\n\r\nIf you find a tag that isn't supported open an issue\r\n\r\n## LICENSE\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Fjavascript-html-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodzik%2Fjavascript-html-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodzik%2Fjavascript-html-tags/lists"}