{"id":15713747,"url":"https://github.com/sam0x17/es6-minifier","last_synced_at":"2026-04-24T16:39:33.361Z","repository":{"id":82773074,"uuid":"274784785","full_name":"sam0x17/es6-minifier","owner":"sam0x17","description":"A self-contained crystal shard that can minify ES6+ JavaScript.","archived":false,"fork":false,"pushed_at":"2022-07-21T14:58:17.000Z","size":676,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T21:27:40.632Z","etag":null,"topics":["crystal-language","crystal-shard","minifier","minify-javascript"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sam0x17.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":"2020-06-24T22:53:12.000Z","updated_at":"2022-07-21T14:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b5e0e00-30a0-46d0-86cd-9ed3e742492d","html_url":"https://github.com/sam0x17/es6-minifier","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam0x17%2Fes6-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam0x17%2Fes6-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam0x17%2Fes6-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam0x17%2Fes6-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sam0x17","download_url":"https://codeload.github.com/sam0x17/es6-minifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365640,"owners_count":20765546,"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":["crystal-language","crystal-shard","minifier","minify-javascript"],"created_at":"2024-10-03T21:33:09.880Z","updated_at":"2026-04-24T16:39:33.331Z","avatar_url":"https://github.com/sam0x17.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es6-minifier\nEmbeds Terser (current standard es6 minification tool in the NPM ecosystem) in\na crystal shard via a cross-platform pkg-powered binary that embeds Terser\nin a lightweight portable nodejs environment. No nodejs required.\n\n## Usage\n\nJust install\nthe shard and you can minify your ES6+ Javascript as follows:\n\n```crystal\nrequire \"es6-minifier\"\n\nEs6Minifier.minify!(\"const  something = 3;\") # =\u003e \"const something=3;\"\n\nEs6Minifier.minify!([\"file1.js\", \"file2.js\"])\n# file1.js and file2.js are overwritten with a minified version of their contents\n```\n\nIf a parsing or IO error occurs, `Es6Minifier.minify!` will throw an error.\n\nRight now there are no configurable options however this could be easily\nadded by passing JSON options to `minify.js` and adding a bit of code\non the crystal side. Pull requests welcome!\n\nCurrently supports linux, macos, and alpine. Could easily support FreeBSD\nand Windows with a several line change.\n\n## Installation\n\nJust add the following to yoour `shard.yml`:\n```\ndependencies:\n  es6-minifier:\n    github: sam0x17/es6-minifier\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam0x17%2Fes6-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsam0x17%2Fes6-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam0x17%2Fes6-minifier/lists"}