{"id":23377982,"url":"https://github.com/beyondjs/module-loaders","last_synced_at":"2026-02-09T13:05:06.525Z","repository":{"id":253717123,"uuid":"844289668","full_name":"beyondjs/module-loaders","owner":"beyondjs","description":"A utility library that wraps RequireJS and SystemJS, allowing them to be used as ES modules. This package provides seamless integration for projects that need these legacy module loaders while working within modern module systems. Simplify your module loading experience without compatibility issues.","archived":false,"fork":false,"pushed_at":"2024-08-18T23:58:43.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T04:49:56.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyondjs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-18T23:58:41.000Z","updated_at":"2024-08-19T00:32:20.000Z","dependencies_parsed_at":"2024-08-19T02:44:00.495Z","dependency_job_id":"ad8c07aa-5d6a-465f-94c0-293d08a2aeb4","html_url":"https://github.com/beyondjs/module-loaders","commit_stats":null,"previous_names":["beyondjs/module-loaders"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beyondjs/module-loaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fmodule-loaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fmodule-loaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fmodule-loaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fmodule-loaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondjs","download_url":"https://codeload.github.com/beyondjs/module-loaders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondjs%2Fmodule-loaders/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814220,"owners_count":24479355,"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-08-10T02:00:08.965Z","response_time":71,"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-12-21T18:33:41.949Z","updated_at":"2026-02-09T13:05:06.515Z","avatar_url":"https://github.com/beyondjs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# @beyond-js/module-loaders\n\n`@beyond-js/module-loaders` is a utility library that provides a simple wrapper around RequireJS and SystemJS, enabling\nthese popular module loaders to be used as ES modules. By default, RequireJS and SystemJS are not compatible with modern\nJavaScript module systems, but this library addresses that limitation.\n\n## Features\n\n-   **Modular Usage**: Use RequireJS and SystemJS as ES modules.\n-   **Simple Integration**: Easily integrate these legacy module loaders in your projects.\n-   **Improved Compatibility**: Overcome issues related to loading and managing modules in different environments.\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install @beyond-js/module-loaders\n```\n\nOr using yarn:\n\n```bash\nyarn add @beyond-js/module-loaders\n```\n\n## Usage\n\nTo use RequireJS and SystemJS as modules in your project, import them as follows:\n\n```javascript\nimport requirejs from '@beyond-js/module-loaders/vendor/require.min.js';\nimport systemjs from '@beyond-js/module-loaders/vendor/s.js';\n\n// Example usage with RequireJS\nrequirejs(['moduleA', 'moduleB'], function (moduleA, moduleB) {\n\t// Your logic here\n});\n\n// Example usage with SystemJS\nsystemjs.import('/path/to/your/module.js').then(module =\u003e {\n\t// Your logic here\n});\n```\n\n### Why Use This Wrapper?\n\nBy default, RequireJS and SystemJS are designed as global script loaders and don’t support being imported as ES modules.\nThis library wraps these loaders, allowing them to be used seamlessly within modern JavaScript module systems.\n\n## Folder Structure\n\nThe key files in this package are:\n\n```\nmodule-loaders/\n│\n├── vendor/\n│   ├── require.min.js       # RequireJS library\n│   └── s.js                 # SystemJS library\n├── package.json\n└── README.md                # Documentation\n```\n\n-   **`vendor/require.min.js`**: Minified version of RequireJS.\n-   **`vendor/s.js`**: SystemJS library.\n\n## Contributing\n\nContributions are welcome! Please follow the [contributing guidelines](CONTRIBUTING.md) if you wish to contribute.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nThis `README.md` gives an overview of the package, explains its purpose, and provides usage instructions. If you need\nmore details added or modifications, feel free to ask!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fmodule-loaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondjs%2Fmodule-loaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondjs%2Fmodule-loaders/lists"}