Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Use your text editor to edit commands in Node's repl.
(tip o' the hat to Giles Bowkett for inspiration)
npm install repl-edit
Typically you just type require('repl-edit')
in node's repl and it will extend it with new commands, just like .break
and .clear
that come with node.
(You can also fire up a repl with editing capabilities by running node-repl-edit
in your shell)
The first time you run .edit
your editor is opened containing the last statement you entered. Type away and then save and close the file when you're done. The code will be loaded and executed immediately. When you subsequently run .edit
your editor is opened and contains whatever you left there.
Your editor is determined by the VISUAL
and EDITOR
environment variables, in that order. You can also change the editor for a single edit by doing something like .edit vim
.
.run
runs the most recent command you've edited.
.editor mate -w
changes your editor to TextMate for this session, by setting the environment variable VISUAL
.
.stash /path/to/a/file
saves your command to the named file.
.unstash /path/to/a/file
restores the contents of that file for you to run and/or edit.
Copyright 2010 - 2011 Sami Samhuri sami@samhuri.net
MIT license, see the included LICENSE
FAQs
Edit code in the repl using a real text editor
The npm package repl-edit receives a total of 0 weekly downloads. As such, repl-edit popularity was classified as not popular.
We found that repl-edit demonstrated a not healthy version release cadence and project activity because the last version was released 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.