{"id":22505167,"url":"https://github.com/azer/indexhtml","last_synced_at":"2025-08-03T11:32:48.893Z","repository":{"id":32348947,"uuid":"35924588","full_name":"azer/indexhtml","owner":"azer","description":"Generate a customized index.html file","archived":false,"fork":false,"pushed_at":"2015-05-20T03:54:18.000Z","size":100,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-22T04:07:25.157Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azer.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-05-20T03:54:12.000Z","updated_at":"2019-08-18T16:44:57.000Z","dependencies_parsed_at":"2022-09-17T05:11:09.491Z","dependency_job_id":null,"html_url":"https://github.com/azer/indexhtml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Findexhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Findexhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Findexhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Findexhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azer","download_url":"https://codeload.github.com/azer/indexhtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228540833,"owners_count":17934031,"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-12-07T00:15:36.996Z","updated_at":"2024-12-07T00:15:37.889Z","avatar_url":"https://github.com/azer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## indexhtml\n\nGenerate a customized index.html file\n\n## Install\n\n```bash\n$ npm install indexhtml\n```\n\n## Usage\n\n```js\nvar indexhtml = require('indexhtml')\n\nindexhtml({\n  title: 'hello world',\n  js: 'bundle.js', // or [..] is ok\n  css: ['default.css', 'pretty.css'], // or 'single.css' is ok\n  meta: [\n    { name: 'viewport', content: 'width=device-width, initial-scale=1' }\n  ],\n  content: '\u003ch1\u003eyo\u003c/h1\u003e'\n})\n```\n\nwill output:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n    \u003ctitle\u003ehello world\u003c/title\u003e\n    \u003clink rel=\"stylesheet\" href=\"default.css\" /\u003e\n    \u003clink rel=\"stylesheet\" href=\"pretty.css\" /\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eyo\u003c/h1\u003e\n    \u003cscript type=\"text/javascript\" src=\"bundle.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Findexhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer%2Findexhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Findexhtml/lists"}