{"id":21076100,"url":"https://github.com/shaack/import-node-modules","last_synced_at":"2025-03-14T03:43:09.862Z","repository":{"id":164856471,"uuid":"640275825","full_name":"shaack/import-node-modules","owner":"shaack","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-16T18:23:06.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T10:51:57.571Z","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/shaack.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}},"created_at":"2023-05-13T14:54:53.000Z","updated_at":"2023-05-16T17:45:30.000Z","dependencies_parsed_at":"2023-07-25T20:23:23.829Z","dependency_job_id":null,"html_url":"https://github.com/shaack/import-node-modules","commit_stats":null,"previous_names":["shaack/node-modules-url","shaack/import-node-module"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fimport-node-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fimport-node-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fimport-node-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fimport-node-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaack","download_url":"https://codeload.github.com/shaack/import-node-modules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242933339,"owners_count":20208897,"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-19T19:26:37.055Z","updated_at":"2025-03-14T03:43:09.839Z","avatar_url":"https://github.com/shaack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# import-node-modules\n\nHelper to set a global `node_modules` variable to include from the /node_modules path in vanilla ES6 modules.\n\n## Example \n\n```html\n\u003c!-- only works, when included from within the node_modules folder --\u003e \n\u003cscript type=\"module\" src=\"../node_modules/import-node-modules/index.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\"\u003e\n    // now you can use the `node_modules` variable to import from the `/node_modules` path\n    import {Chessboard} from `${node_modules}/cm-chessboard/src/Chessboard.js`;\n    console.log(Chessboard);\n\u003c/script\u003e\n```\n\nIt's simple, it's stupid, but it works.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaack%2Fimport-node-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaack%2Fimport-node-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaack%2Fimport-node-modules/lists"}