
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
etherpad-require-kernel
Advanced tools
A reference implementation of a CommonJS module loader for Etherpad.
This is an implementation of the CommonJS module standard for a browser environment.
The kernel is a code fragment that evaluates to an unnamed function.
Modules can be loaded either synchronously and asynchronously:
module = require(path)require(path1[, path2[, ...]], function (module1[, module2[, ...]]) {})The kernel has the following methods:
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).
require.define(path, module)require.define({path1: module1[, path2: module2[, ...]]})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.setRootURI: The URI that non-library paths will be requested relative to. Default is undefined.setLibraryURI: The URI that library paths (i.e. paths that do not match /^\.{0,2}\//) will be requested relative to. Default is undefined.setRequestMaximum: The maximum number of concurrent requests. Default is 2.setLibraryLookupComponent: A string (such as "node_modules"). If defined, libraries will be searched for in parent directories. Default is undefined.If 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).
JSONP 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).
Released 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.
FAQs
A reference implementation of a CommonJS module loader for Etherpad.
The npm package etherpad-require-kernel receives a total of 528 weekly downloads. As such, etherpad-require-kernel popularity was classified as not popular.
We found that etherpad-require-kernel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.