{"id":26134029,"url":"https://github.com/rodgeraraujo/html-scripting","last_synced_at":"2025-04-13T21:27:20.311Z","repository":{"id":57267618,"uuid":"268000545","full_name":"rodgeraraujo/html-scripting","owner":"rodgeraraujo","description":"Easy way to write HTML code with only JS.","archived":false,"fork":false,"pushed_at":"2020-06-09T03:45:49.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T06:41:05.213Z","etag":null,"topics":["html","html-builder","html-javascript","javascript","js"],"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/rodgeraraujo.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":"2020-05-30T03:15:22.000Z","updated_at":"2024-03-10T17:02:49.000Z","dependencies_parsed_at":"2022-09-02T05:40:54.897Z","dependency_job_id":null,"html_url":"https://github.com/rodgeraraujo/html-scripting","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Fhtml-scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Fhtml-scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Fhtml-scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Fhtml-scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodgeraraujo","download_url":"https://codeload.github.com/rodgeraraujo/html-scripting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248784439,"owners_count":21161129,"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":["html","html-builder","html-javascript","javascript","js"],"created_at":"2025-03-10T23:03:49.462Z","updated_at":"2025-04-13T21:27:20.290Z","avatar_url":"https://github.com/rodgeraraujo.png","language":"JavaScript","readme":"# HtmlScripting\n\n[![npm version](https://badge.fury.io/js/html-scripting.svg)](https://badge.fury.io/js/html-scripting) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n#### Easy way to write HTML code with only JS.\n\n## Installation\n\nnpm or yarn:\n\n```sh\n$ npm i html-scripting\n\n```\n\n## Description\n\nThe main idea is to be able to write clear and readable code html, using simple js structure.\n\nThe structure like this, is able to convert this js code:\n\n```js\nvar HtmlScripting = require('html-scripting');\n\nvar htmlScripting = new HtmlScripting('html');\n\nvar html5 = htmlScripting.html('5', 'en').head('UTF-8', 'My title').body().p('My text here');\n```\n\ninto this:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /\u003e\n    \u003ctitle\u003eMy title\u003c/title\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cp\u003eMy text here\u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Contributing\n\nIf you want to contribute to a project and make it better, feel free to fork and contribute.\n\n## License\n\n[MIT](https://github.com/rodgeraraujo/html-scripting/blob/master/LICENSE)\n\n## Author\n\n[Rogério Araújo](https://github.com/rodgeraraujo)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodgeraraujo%2Fhtml-scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodgeraraujo%2Fhtml-scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodgeraraujo%2Fhtml-scripting/lists"}