{"id":19065936,"url":"https://github.com/esm-dev/vscode","last_synced_at":"2025-04-28T12:24:17.915Z","repository":{"id":246521072,"uuid":"821368239","full_name":"esm-dev/vscode","owner":"esm-dev","description":"A Visual Studio Code extension loads types(.d.ts) for esm.sh imports.","archived":false,"fork":false,"pushed_at":"2024-10-29T18:52:05.000Z","size":211,"stargazers_count":33,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T07:31:50.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/esm-dev.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":"2024-06-28T11:37:50.000Z","updated_at":"2025-02-28T11:53:26.000Z","dependencies_parsed_at":"2024-06-28T13:07:35.738Z","dependency_job_id":"fc6efba9-e5dc-4696-9a00-33c12939c8d9","html_url":"https://github.com/esm-dev/vscode","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"44fc49c9fb1d37c935e4fa72bdfcff1bc408da46"},"previous_names":["esm-dev/esm-vscode","esm-dev/vscode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fvscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fvscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fvscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esm-dev%2Fvscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esm-dev","download_url":"https://codeload.github.com/esm-dev/vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250860590,"owners_count":21498963,"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-09T00:53:43.574Z","updated_at":"2025-04-28T12:24:17.893Z","avatar_url":"https://github.com/esm-dev.png","language":"TypeScript","readme":"![Figure #1](https://esm.sh/embed/assets/sceenshot-deno-types.png)\n\n# esm.sh - Visual Studio Code Extension\n\n[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/ije.esm-vscode.svg?color=c19999\u0026amp;label=Marketplace\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=ije.esm-vscode)\n\nA Visual Studio Code extension loads types(.d.ts) for [esm.sh](https://esm.sh) imports. No `npm install` required. (Types in `node_modules` will be used first, if exists)\n\n## Using Import Maps\n\nThis extension respects `importmap` script tag in `index.html` files of your project. With [import maps](https://github.com/WICG/import-maps), you can use \"bare import specifiers\", such as `import React from \"react\"`, to work.\n\n```html\n\u003c!-- index.html --\u003e\n\n\u003cscript type=\"importmap\"\u003e\n  {\n    \"imports\": {\n      \"react\": \"https://esm.sh/react@18.3.1\"\n    }\n  }\n\u003c/script\u003e\n\u003cscript type=\"module\" src=\"./app.tsx\"\u003e\u003c/script\u003e\n```\n\n```tsx\n// app.tsx\n\nimport { useState } from \"react\";\n\nexport default function App() {\n  const [message, setMessage] = useState\u003cstring\u003e(\"Hello World!\");\n  return \u003ch1\u003e{message}\u003c/h1\u003e;\n}\n```\n\n## JSX Import Source\n\nBy default, the extension uses [react](https://www.npmjs.com/package/react) or [preact](https://www.npmjs.com/package/preact) as the JSX transform runtime if it's specified in the import map. You can specify it by setting the `@jsxRuntime` import in the importmap script tag.\n\n```html\n\u003cscript type=\"importmap\"\u003e\n  {\n    \"imports\": {\n      \"@jsxRuntime\": \"https://esm.sh/react@18.3.1\"\n    }\n  }\n\u003c/script\u003e\n```\n\n## Snippets\n\nThis extension provides some useful snippets for working with ESM modules in HTML files.\n\n- `importmap`: Insert a new import map script tag.\n- `module`: Insert a new module script tag.\n- `module-with-src`: Insert a new module script tag with `src` attribute.\n\n## Roadmap\n\n- Support Windows platform\n- Import map version code lens\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesm-dev%2Fvscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesm-dev%2Fvscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesm-dev%2Fvscode/lists"}