{"id":43803959,"url":"https://github.com/alajmo/pure-html","last_synced_at":"2026-02-05T22:30:31.814Z","repository":{"id":38075509,"uuid":"94296844","full_name":"alajmo/pure-html","owner":"alajmo","description":":wrench: A command line tool for creating standalone html files","archived":false,"fork":false,"pushed_at":"2022-06-22T21:13:13.000Z","size":337,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T13:43:23.392Z","etag":null,"topics":["cli","development","devtools","html","inline","inline-css","library"],"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/alajmo.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}},"created_at":"2017-06-14T06:23:34.000Z","updated_at":"2023-08-24T03:07:05.000Z","dependencies_parsed_at":"2022-08-31T02:22:22.492Z","dependency_job_id":null,"html_url":"https://github.com/alajmo/pure-html","commit_stats":null,"previous_names":["samiralajmovic/pure-html"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alajmo/pure-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alajmo%2Fpure-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alajmo%2Fpure-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alajmo%2Fpure-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alajmo%2Fpure-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alajmo","download_url":"https://codeload.github.com/alajmo/pure-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alajmo%2Fpure-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29136749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T21:59:57.939Z","status":"ssl_error","status_checked_at":"2026-02-05T21:59:57.628Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","development","devtools","html","inline","inline-css","library"],"created_at":"2026-02-05T22:30:31.152Z","updated_at":"2026-02-05T22:30:31.805Z","avatar_url":"https://github.com/alajmo.png","language":"JavaScript","readme":"# pure-html\n\nSometimes you just want to create a standard html file with no dependencies, this little plugin helps you do just that with **hot-reloading** of html and css!\n\n**Go from this:**\n\n*index.html*\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003clink inline rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Roboto\"\u003e\n        \u003clink inline rel=\"stylesheet\" href=\"style.css\"\u003e\n        \u003clink rel=\"stylesheet\" href=\"non-inline-style.css\"\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        \u003cdiv\u003e\n            Test\n        \u003c/div\u003e\n        \u003cscript inline type=\"text/javascript\" src=\"script.js\"\u003e\u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n*style.css*\n```html\nbody, html {\n    display: flex;\n    background: blue;\n}\n```\n\n*script.js*\n```html\nconsole.log('Hello World!');\n```\n\n**To this:**\n\n*index.html*\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003cstyle\u003e@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/zN7GBFwfMP4uA6AR0HCoLQ.ttf) format('truetype')}\u003c/style\u003e\n        \u003cstyle\u003ebody,html{display:-webkit-box;display:-ms-flexbox;display:flex;background:#00f}\u003c/style\u003e\n        \u003clink rel=\"stylesheet\" href=\"non-inline-style.css\"\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        \u003cdiv\u003e\n            Test\n        \u003c/div\u003e\n        \u003cscript type=\"text/javascript\"\u003econsole.log(\"hello world\");\u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Features\n\n* Inline css and js\n* Hot-reloading of html and css\n* Css autoprefixer\n* Html Validation\n\n## Requirements\n\n* Node 8 \u003e=\n\n## Usage\n\n```txt\n  Usage: pure-html [options]\n\n  Command line tool for creating standalone html files.\n\n\n  Options:\n\n    -V, --version      output the version number\n    -w, --watch        start browsersync. [boolean] [default: false]\n    -s, --src [path]   source folder. [string] [default: current working directory]\n    -d, --dest \u003cpath\u003e  output folder. [string] [required]\n    -p, --port [port]  port browswersync listens on. [integer] [default: 3000]\n    -l, --html-lint    enable HTML lint. [boolean] [default: false]\n    -h, --help         output usage information\n\n  Examples:\n\n    $ pure-html -w -p 8000 -s src -d dist\n    $ pure-html -d output-folder\n```\n\nAdditionally, I can recommend [Base 64 encoding](http://b64.io/) in-case you want to inline svg's.\n\n## Development\n\nFollows [Conventional Commits](https://conventionalcommits.org/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falajmo%2Fpure-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falajmo%2Fpure-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falajmo%2Fpure-html/lists"}