{"id":21707827,"url":"https://github.com/flightaware/jsmin-tcl","last_synced_at":"2025-03-20T17:22:24.699Z","repository":{"id":28934906,"uuid":"32460654","full_name":"flightaware/jsmin-tcl","owner":"flightaware","description":"A Tcl JavaScript minifier inspired by Douglas Crockford’s JSMin","archived":false,"fork":false,"pushed_at":"2016-09-14T22:27:32.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2023-04-18T10:34:09.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flightaware.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":"2015-03-18T13:33:33.000Z","updated_at":"2019-06-29T10:33:22.000Z","dependencies_parsed_at":"2022-08-28T07:51:02.951Z","dependency_job_id":null,"html_url":"https://github.com/flightaware/jsmin-tcl","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Fjsmin-tcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Fjsmin-tcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Fjsmin-tcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Fjsmin-tcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flightaware","download_url":"https://codeload.github.com/flightaware/jsmin-tcl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244657084,"owners_count":20488714,"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-11-25T22:19:24.153Z","updated_at":"2025-03-20T17:22:24.656Z","avatar_url":"https://github.com/flightaware.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSMin-Tcl\n=========\nJSMin-Tcl is a JavaScript minifier written in Tcl. Although inspired by Douglas Crockford's C-based JSMin, it has its own implementation and is **not** simply port. The behavior should be identical to Crockford's JSMin.\n\nBehavior\n--------\nJSMin-Tcl removes all unnecessary whitespace from Javascript source code.\nIt will not rename your variables to shorter names, or \"name mangle\".\n\nFor example:\n\n```javascript\nvar foo = \"bar\";\nfunction example(arg0, arg1) {\n    console.log(\"example\");\n}\n```\n\nAfter minification becomes:\n```javascript\nvar foo=\"bar\";function example(arg0,arg1){console.log(\"example\");}\n```\n\nUsage\n-----\nMinification is done using the \"minify\" proc in JSMin-Tcl. **Be sure to retain your original source file. Minification cannot be undone.**\n```tcl\njsmin::minify inputChannel outputChannel\n```\n\nExample:\n\n```tcl\npackage require jsmin\n\nset fp [open \"exampleFile.js\"]\njsmin::minify $fp stdout\nclose $fp\n```\n\nIf you want to directly pass a string of JavaScript and store the result in a variable you can do so like this:\n```tcl\npackage require jsmin\n\nset in [::tcl::chan::string $js]\nset out [::tcl::chan::variable outstring]\njsmin::minify $in $out\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightaware%2Fjsmin-tcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflightaware%2Fjsmin-tcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightaware%2Fjsmin-tcl/lists"}