
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
node-repl-polyfill
Advanced tools
Simple node:repl
polyfill for other JS runtimes which do not support node:repl
(eg Deno, Bun).
This polyfill does not aim to have full parity but provide a basic library for people wanting to use the basics of node:repl
. The default eval function is intentionally terrible, as it is expected you are bringing your own. With these limitations, it should act like a "drop-in" replacement for node:repl
by just importing this package instead of node:repl
. This package does no detection for native support of node:repl
, so does not try to use a native implementation at all.
npm install node-repl-polyfill
You can use the following import as to use node:repl
if supported by the runtime being used:
let repl;
try {
// try importing node:repl
repl = await import('node:repl');
// check it is not just a mock with REPLServer prototype
if (repl.REPLServer.prototype.defineCommand == null)
throw 'mock node:repl detected';
} catch {
// it failed, import the polyfill
repl = (await import('node-repl-polyfill')).default;
}
This polyfill relies on the runtime supporting:
node:process
(stdin
, stdout
)node:util
(inspect
)node:readline
(Interface
)Runtimes tested:
FAQs
node:repl polyfill for other JS runtimes
The npm package node-repl-polyfill receives a total of 36 weekly downloads. As such, node-repl-polyfill popularity was classified as not popular.
We found that node-repl-polyfill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.