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.
Peakle is a tiny abstraction around lists that makes them more walkable.
Peakle's constructor takes only one parameter, a list of values.
var peakled = new Peakle([ 1, 2, 3 ]);
By default, the current position is always at the first element. If the initial list is empty, then the current position is 'null'.
Properties:
* length: returns a number of elements in the underlying list.
* current: returns a value of the current element.
Methods:
* next(): Moves to the next element and returns its value.
* prev(): Moves to the previous element and returns its value.
* peak(adv): Returns next element's value without moving its pointer.
This method accepts an optional numeric parameter. Use it if you
want to peak further.
* move(index): Moves to the specified element.
All methods return 'null' if they can't return a value.
Example:
var peakled = new Peakle([ 1, 2, 3 ]);
peakled.current; // 1
peakled.peak(); // 2
peakled.peak(2); // 3
peakled.next(); // 2
peakled.peak(); // 3
peakled.peak(2); // null
peakled.peak(-1); // 1
peakled.prev(); // 1
peakled.move(2); // 3
FAQs
Unknown package
The npm package peakle receives a total of 1,019 weekly downloads. As such, peakle popularity was classified as popular.
We found that peakle 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.