Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@borodean/jsonp
Advanced tools
url
<String> The URL to which the request is sent.options
<Object>
parameter
<String> The name of the JSONP query parameter. Defaults to "callback"
.object
<Object> An object to which to attach the JSONP callback. Defaults to window
.key
<String> The name of the JSONP callback. Defaults to an automatically generated unique value.callback
<Function(err, data)> A callback function that receives the data.Loads data from the server using JSONP. Example:
import jsonp from '@borodean/jsonp';
jsonp('https://jsfiddle.net/echo/jsonp?foo=bar', (err, data) => {
if (err) throw err;
console.log(data);
});
A version that returns a promise is also available:
import jsonp from '@borodean/jsonp/promise';
jsonp('https://jsfiddle.net/echo/jsonp?foo=bar').then(
data => console.log(data),
err => console.log(err)
);
npm install @borodean/jsonp
For a browser global version check the dist
directory of the installed module or directly download it:
Promise version:
FAQs
The smallest possible JSONP implementation
The npm package @borodean/jsonp receives a total of 10 weekly downloads. As such, @borodean/jsonp popularity was classified as not popular.
We found that @borodean/jsonp 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.