
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
node-restclient
Advanced tools
Sometimes dabbling in HTTP Client connection and body processing can get messy. Never fear, Node-RestClient is here! Sporting a spiffy "jQuery" style familiar API, Node-RestClient bends to your every whim.
var restclient = require('./restclient'), sys = require("sys");
restclient.get("http://twitter.com/statuses/show/4.json", function(result) { sys.puts(result); }, "json");
restclient.post("http://username:password@twitter.com/statuses/update.json", {status: "I love Node.js"}, function(result) { sys.puts(result); }, "json");
restclient.get( url, [data], [callback], [type] )
url A standard URL or a Basic Authentication encoded URL (as shown above), it will automatically figure out what to do! Optional.
data Key/value pairs that will be sent to the server. Optional.
callback A function to be executed whenever the data is loaded successfully. Optional.
type Either "text" or "json". Optional.
And just like that you can consume web-services with the elegance of a ruby, but the speed of a V8! Due note that just like jQuery, the result returned will be a JSON object if "json" is specified as the type.
FAQs
node-restclient adds easy-to-use api for basic http methods
The npm package node-restclient receives a total of 6 weekly downloads. As such, node-restclient popularity was classified as not popular.
We found that node-restclient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.