{"id":13815680,"url":"https://github.com/importpw/import","last_synced_at":"2025-05-15T09:33:06.891Z","repository":{"id":47763277,"uuid":"138228897","full_name":"importpw/import","owner":"importpw","description":"`import` is a simple and fast module system for Bash and other Unix shells","archived":false,"fork":false,"pushed_at":"2022-11-12T08:46:47.000Z","size":118,"stargazers_count":338,"open_issues_count":5,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T04:09:18.958Z","etag":null,"topics":["bash","posix","shell","zsh"],"latest_commit_sha":null,"homepage":"https://import.sh","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/importpw.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":"2018-06-21T22:42:33.000Z","updated_at":"2024-06-24T07:27:26.000Z","dependencies_parsed_at":"2023-01-22T02:00:48.789Z","dependency_job_id":null,"html_url":"https://github.com/importpw/import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importpw%2Fimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importpw%2Fimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importpw%2Fimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importpw%2Fimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/importpw","download_url":"https://codeload.github.com/importpw/import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225342811,"owners_count":17459478,"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":["bash","posix","shell","zsh"],"created_at":"2024-08-04T04:03:52.322Z","updated_at":"2024-11-19T11:30:52.739Z","avatar_url":"https://github.com/importpw.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# import\n\n`import` is a simple and fast module system for Bash and other Unix shells.\n\nInspired by Go's import command, you specify the URL of the shell script,\nand the `import` function downloads the file and caches it locally, _forever_.\n\nThe code will never change from below your feet, and will continue to work\noffline.\n\n\n## 👋 Example\n\nhttps://git.io/fAWiz ← This URL contains a simple `add` shell function:\n\n```bash\nadd() {\n  expr \"$1\" + \"$2\"\n}\n```\n\nYou can use the `import` function to download, cache, and use that function in\nyour own script:\n\n```bash\n#!/usr/bin/env import\n\n# The URL is downloaded once, cached forever, and then sourced\nimport \"https://git.io/fAWiz\"\n\nadd 20 22\n# 42\n```\n\n\n## ⚙️ Compatibility\n\nThe core `import` function is fully POSIX-compliant, and maximum compatibility\nis the goal. `import` is unit tested against the following shell implementations:\n\n * [ash](https://en.wikipedia.org/wiki/Almquist_shell) - Almquist Shell (BusyBox `ash` and Debian `dash`)\n * [ksh](https://en.wikipedia.org/wiki/KornShell) - KornShell (`oksh`, `mksh` and `loksh` flavors)\n * [zsh](https://en.wikipedia.org/wiki/Z_shell) - Z Shell\n * [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) - GNU's Bourne Again Shell\n\n\n## 📚 Documentation\n\n * [Authentication](./docs/authentication.md) - Making private GitHub repos work\n * [API](./docs/api.md) - Application programming interface reference\n * [Caching](./docs/caching.md) - Explanation of the caching strategy\n * [Configuration](./docs/config.md) - Customizing `import` with environment variables\n * [Installation](./docs/install.md) - Installing and bootstrapping `import`\n * [Namespaced Imports](./docs/namespaced-imports.md) - Top-level and community imports\n * [Relative Imports](./docs/relative-imports.md) - Implementation for relative imports\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportpw%2Fimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimportpw%2Fimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportpw%2Fimport/lists"}