{"id":31898330,"url":"https://github.com/minhajuddin/mix_script","last_synced_at":"2026-03-08T16:31:49.052Z","repository":{"id":62429889,"uuid":"91371510","full_name":"minhajuddin/mix_script","owner":"minhajuddin","description":"A build tool which allows you to use mix packages in an elixir script","archived":false,"fork":false,"pushed_at":"2017-12-12T15:16:46.000Z","size":9,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-02T14:57:12.868Z","etag":null,"topics":["build","elixir","escript","hex","mix"],"latest_commit_sha":null,"homepage":"https://github.com/minhajuddin/mix_script","language":"Elixir","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/minhajuddin.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":"2017-05-15T18:33:28.000Z","updated_at":"2023-06-28T17:44:47.000Z","dependencies_parsed_at":"2022-11-01T20:03:55.269Z","dependency_job_id":null,"html_url":"https://github.com/minhajuddin/mix_script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minhajuddin/mix_script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fmix_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fmix_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fmix_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fmix_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minhajuddin","download_url":"https://codeload.github.com/minhajuddin/mix_script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minhajuddin%2Fmix_script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014820,"owners_count":26085596,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["build","elixir","escript","hex","mix"],"created_at":"2025-10-13T11:59:23.194Z","updated_at":"2025-10-13T11:59:27.001Z","avatar_url":"https://github.com/minhajuddin.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MixScript\n\nA build utility that allows you to to use mix packages in an elixir script.\n\n## Example\n\nLet us say, you have a file at `~/scripts/elixir_curl.exs`\n\n```elixir\nmix_dep {:httpotion, \"\u003e0.0.0\"}\n\nif args == [] do\n  IO.puts \"invalid args\"\nelse\n  IO.inspect HTTPotion.get(hd args)\nend\n```\n\nYou can run the following:\n\n```\n# compile our elixir script\nmix_script compile ~/scripts/elixir_curl.exs\n# run it with args\n~/scripts/elixir_curl http://google.com\n\u003e %HTTPotion.Response{body: \"\u003cHTML\u003e\u003cHEAD\u003e\u003cmeta http-equiv=\\\"content-type\\\" content=\\\"text/html;charset=utf-8\\\"\u003e\\n\u003cTITLE\u003e302 Moved\u003c/TITLE\u003e\u003c/HEAD\u003e\u003cBODY\u003e\\n\u003cH1\u003e302 Moved\u003c/H1\u003e\\nThe document has moved\\n\u003cA HREF=\\\"http://www.google.co.in/?gfe_rd=cr\u0026amp;ei=DBAaWbWTLurx8AeKp4uwCg\\\"\u003ehere\u003c/A\u003e.\\r\\n\u003c/BODY\u003e\u003c/HTML\u003e\\r\\n\",\n headers: %HTTPotion.Headers{hdrs: %{\"cache-control\" =\u003e \"private\",\n    \"content-length\" =\u003e \"261\", \"content-type\" =\u003e \"text/html; charset=UTF-8\",\n    \"date\" =\u003e \"Mon, 15 May 2017 20:31:08 GMT\",\n    \"location\" =\u003e \"http://www.google.co.in/?gfe_rd=cr\u0026ei=DBAaWbWTLurx8AeKp4uwCg\",\n    \"referrer-policy\" =\u003e \"no-referrer\"}}, status_code: 302}\n```\n\n## Installation\n\n```\nmix escript.install hex mix_script\n```\n\n**This will install the binary into your `$HOME/.mix/escripts` directory, so make sure that is part of your `$PATH`**\n\n## TODO\n  - [ ] Make this more efficient by using a common directory for the mix packages\n  - [ ] Make it usable via a shebang `#!/usr/bin/env mix_script` which does compilation and execution\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhajuddin%2Fmix_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhajuddin%2Fmix_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhajuddin%2Fmix_script/lists"}