{"id":16836611,"url":"https://github.com/obetomuniz/im-cli","last_synced_at":"2025-04-11T05:11:14.601Z","repository":{"id":149599701,"uuid":"622077852","full_name":"obetomuniz/im-cli","owner":"obetomuniz","description":"A command line tool for web developers manage Import Maps dependencies","archived":false,"fork":false,"pushed_at":"2023-04-03T04:21:46.000Z","size":129,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T13:01:37.239Z","etag":null,"topics":["cli","importmaps","nodejs","package-manager","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/im-cli","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obetomuniz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-04-01T03:55:07.000Z","updated_at":"2023-04-03T04:21:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"988f298d-7680-4189-82f4-d1951cbfdfb0","html_url":"https://github.com/obetomuniz/im-cli","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"d54ed41cedd4ac6d80a59ba28176dc594f9c151a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obetomuniz%2Fim-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obetomuniz%2Fim-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obetomuniz%2Fim-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obetomuniz%2Fim-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obetomuniz","download_url":"https://codeload.github.com/obetomuniz/im-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345266,"owners_count":21088244,"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":["cli","importmaps","nodejs","package-manager","typescript"],"created_at":"2024-10-13T12:13:57.832Z","updated_at":"2025-04-11T05:11:14.582Z","avatar_url":"https://github.com/obetomuniz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import Maps Command Line Interface\n\nA command-line utility for managing [JavaScript import maps](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) dependencies.\n\n\u003cimg width=\"80%\" alt=\"Screenshot 2023-04-01 at 00 54 27\" src=\"https://user-images.githubusercontent.com/1680157/229265234-f5120ec8-28cb-4cce-9303-444b076ec032.png\"\u003e\n\nThis utility uses the [esm.sh](https://esm.sh) CDN to fetch package information and versions.\n\n## Installation\n\nTo install `im-cli` globally, run the following command:\n\n```bash\nnpm install -g im-cli\n```\n\n## Usage\n\n```bash\nim \u003ccommand\u003e [package-name] [@version]\n```\n\n## Commands\n\n### Adding a package\n\nTo add a package called `lodash` to your import map JSON file, run:\n\n```bash\nim add lodash\n```\n\nTo add a specific version of the `lodash` package, include the version with the package name:\n\n```bash\nim add lodash@4.17.21\n```\n\n### Updating a package\n\nTo update the `lodash` package to the latest version, run:\n\n```bash\nim update lodash\n```\n\n### Removing a package\n\nTo remove the `lodash` package from your import map JSON file, run:\n\n```bash\nim remove lodash\n```\n\n### Displaying help\n\nTo display a help message with command usage, run:\n\n```bash\nim help\n```\n\n## Import map usage in HTML\n\nTo use the generated import map in your HTML file, include the following script tag:\n\n```html\n\u003cscript type=\"importmap\" src=\"path/to/your/im.json\"\u003e\u003c/script\u003e\n```\n\nNow you can use the ES module imports in your JavaScript files:\n\n```javascript\nimport _ from \"lodash\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobetomuniz%2Fim-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobetomuniz%2Fim-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobetomuniz%2Fim-cli/lists"}