{"id":28746171,"url":"https://github.com/ether/etherpad-require-kernel","last_synced_at":"2025-06-16T14:30:38.898Z","repository":{"id":23828924,"uuid":"27205969","full_name":"ether/etherpad-require-kernel","owner":"ether","description":"A require kernel for Etherpad","archived":false,"fork":false,"pushed_at":"2024-02-10T10:30:07.000Z","size":160,"stargazers_count":6,"open_issues_count":3,"forks_count":7,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-24T21:04:18.388Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ether.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":"2014-11-27T02:42:25.000Z","updated_at":"2025-02-12T03:44:02.000Z","dependencies_parsed_at":"2024-06-18T19:43:42.535Z","dependency_job_id":"870e32aa-1ff6-414a-aff2-40cef40dcba9","html_url":"https://github.com/ether/etherpad-require-kernel","commit_stats":{"total_commits":71,"total_committers":6,"mean_commits":"11.833333333333334","dds":0.5915492957746479,"last_synced_commit":"84fdbf231320771f8922f68215672ae4557fbcfa"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ether/etherpad-require-kernel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fetherpad-require-kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fetherpad-require-kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fetherpad-require-kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fetherpad-require-kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ether","download_url":"https://codeload.github.com/ether/etherpad-require-kernel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ether%2Fetherpad-require-kernel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260175607,"owners_count":22970006,"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":"2025-06-16T14:30:37.659Z","updated_at":"2025-06-16T14:30:38.810Z","avatar_url":"https://github.com/ether.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# require-kernel #\n\nThis is an implementation of the [CommonJS module standard](http://wiki.commonjs.org/wiki/Modules/1.1) for a browser environment.\n\n## Usage ##\n\nThe kernel is a code fragment that evaluates to an unnamed function.\n\n### Interface ###\n\nModules can be loaded either synchronously and asynchronously:\n\n* `module = require(path)`\n* `require(path1[, path2[, ...]], function (module1[, module2[, ...]]) {})`\n\nThe kernel has the following methods:\n\n* `define`: A method for defining modules. It may be invoked one of several ways. In either case the path is expected to be fully qualified and the module a function with the signature `(require, exports, module)`.\n  * `require.define(path, module)`\n  * `require.define({path1: module1[, path2: module2[, ...]]})`\n* `setGlobalKeyPath`: A string (such as `\"require\"` and `\"namespace.req\"`) that evaluates to the kernel in the global scope. Asynchronous retrieval of modules using JSONP will happen if and only if this path is defined. Default is `undefined`.\n* `setRootURI`: The URI that non-library paths will be requested relative to. Default is `undefined`.\n* `setLibraryURI`: The URI that library paths (i.e. paths that do not match `/^\\.{0,2}\\//`) will be requested relative to. Default is `undefined`.\n* `setRequestMaximum`: The maximum number of concurrent requests. Default is `2`.\n* `setLibraryLookupComponent`: A string (such as `\"node_modules\"`). If defined, libraries will be searched for in parent directories. Default is `undefined`.\n\n## Behavior ##\n\n### JSONP ###\n\nIf a global key path was set for the kernel and the request is allowed to be asynchronous, a JSONP will be used to request the module. The callback parameter sent in the request is the `define` method of `require` (as specified by the global key path).\n\n### Cross Origin Resources ###\n\nJSONP accomplishes CORS, so if such a request is possible to make, it is made, else, if the user agent is capable of such a request, requests to cross origin resources can be made, if not (IE[6,7]), the kernel will attempt to make a request to a mirrored location on the same origin (`http://static.example.com/javascripts/index.js` becomes `http://www.example.com/javascripts/index.js`).\n\n## License ##\n\nReleased to the public domain. In any regions where transfer the public domain is not possible the software is granted under the terms of the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fether%2Fetherpad-require-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fether%2Fetherpad-require-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fether%2Fetherpad-require-kernel/lists"}