{"id":19777719,"url":"https://github.com/lvce-editor/import-script","last_synced_at":"2025-11-22T23:04:29.087Z","repository":{"id":228019209,"uuid":"772942911","full_name":"lvce-editor/import-script","owner":"lvce-editor","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T10:49:04.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T01:38:20.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lvce-editor.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-03-16T10:00:24.000Z","updated_at":"2024-03-16T10:12:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"df0f5383-f5a4-4809-81cf-9a8f3b182207","html_url":"https://github.com/lvce-editor/import-script","commit_stats":null,"previous_names":["lvce-editor/import-script"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lvce-editor/import-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvce-editor%2Fimport-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvce-editor%2Fimport-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvce-editor%2Fimport-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvce-editor%2Fimport-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvce-editor","download_url":"https://codeload.github.com/lvce-editor/import-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvce-editor%2Fimport-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285873554,"owners_count":27246054,"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-11-22T02:00:05.934Z","response_time":64,"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":[],"created_at":"2024-11-12T05:26:11.261Z","updated_at":"2025-11-22T23:04:29.072Z","avatar_url":"https://github.com/lvce-editor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# import-script\n\nDynamically import a module with helpful error messages in case the import fails.\n\n## Install\n\n```sh\nnpm install @lvce-editor/import-script\n```\n\n## Usage\n\n```js\nimport { importScript } from '@lvce-editor/importScript'\n\nconst otherFunction = () =\u003e {\n  throw new Error(`oops`)\n}\n\nconst module = await import('./not-found.js')\n\n//\n//\n```\n\n## Gitpod\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/lvce-editor/import-script)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvce-editor%2Fimport-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvce-editor%2Fimport-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvce-editor%2Fimport-script/lists"}