{"id":21647849,"url":"https://github.com/markknol/hx-minifier","last_synced_at":"2025-03-20T01:54:34.255Z","repository":{"id":69819696,"uuid":"126957277","full_name":"markknol/hx-minifier","owner":"markknol","description":"Haxe HTML/CSS Minifier","archived":false,"fork":false,"pushed_at":"2019-07-16T07:45:08.000Z","size":66,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-25T05:11:30.511Z","etag":null,"topics":["css-minifier","haxe","haxelib","html-minifier","minification","tool"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/markknol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"patreon":"markknol","custom":["http://paypal.me/markknol"]}},"created_at":"2018-03-27T08:51:34.000Z","updated_at":"2022-09-18T03:51:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"c19c8974-a30b-414b-9ff6-75300f25fa77","html_url":"https://github.com/markknol/hx-minifier","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/markknol%2Fhx-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markknol%2Fhx-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markknol","download_url":"https://codeload.github.com/markknol/hx-minifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244536441,"owners_count":20468349,"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":["css-minifier","haxe","haxelib","html-minifier","minification","tool"],"created_at":"2024-11-25T06:51:59.470Z","updated_at":"2025-03-20T01:54:34.236Z","avatar_url":"https://github.com/markknol.png","language":"HTML","funding_links":["https://patreon.com/markknol","http://paypal.me/markknol"],"categories":[],"sub_categories":[],"readme":"# Haxe HTML/CSS Minifier\n\n[![Build Status](https://travis-ci.org/markknol/hx-minifier.svg?branch=master)](https://travis-ci.org/markknol/hx-minifier)\n[![Haxelib Version](https://img.shields.io/github/tag/markknol/hx-minifier.svg?label=haxelib)](http://lib.haxe.org/p/Minifier)\n\nThis project does not aim to be the smallest but to provide just a way to minify HTML / CSS files.\n\n## Installation\n\nInstall using [Haxelib](https://lib.haxe.org/p/Minifier/):\n\n```\nhaxelib install minifier\n```\n\nTo use in code, add to your build hxml:\n\n```\n-lib minifier\n```\n\n## API\n\n * `public static function minifyHtml(content:String, keepComments:Bool = true)`\n   Minifies HTML. Assumes only `textarea`, `pre`, `script`, `code` tags contain meaningful spaces/newlines. \n   \n * `public static function minifyCss(content:String, keepComments:Bool = true)`]\n   Minify a (valid) CSS document.\n   \n * `public static function removeHtmlComments(content:String)`\n   Remove HTML comments from given `content`.\n   \n * `public static function removeCssComments(content:String)`\n   Remove CSS comments from given `content`.\n\n### Command-line\n\nThe library also comes as command-line tool. At the moment this is only per file, with specific extension.\n\n```\nHTML/CSS Minifier\nhttps://github.com/markknol/hxminifier\n\n[-in] \u003cpath\u003e    : File to process. required. Should have extension\n[-out] \u003cpath\u003e   : Project out folder. By default same as in-path\n[--overwrite]   : Allows overwriting in output. By default no file\n[--no-comments] : Removes comments. By default comments are kept\n```\n\n### Dependencies\n\n * [Haxe](https://haxe.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhx-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkknol%2Fhx-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkknol%2Fhx-minifier/lists"}