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.
** Basic
#+BEGIN_SRC javascript var populater = require('populater'); var data = { text: "World" };
var context = populater(data); context("Hello {{text}}!") // === "Hello World!";
var template = populater.template("Hello {{text}}!"); template.context(data) // === "Hello World!";
#+END_SRC
** Define a method
#+BEGIN_SRC javascript var populater = require('populater');
populater.method('keys', function() { return Object.keys(this); });
var data = { text: "World" }; var context = populater(data); context("keys()") // === ['text']; #+END_SRC
** Using an alternative context for methods
#+BEGIN_SRC javascript var populater = require('populater');
populater.method('keys', function() { return Object.keys(this); });
var data = { text: "World" }; var altCTX = { 'one': true, 'two': true, 'three': true, };
var context = populater(data, altCTX); context("keys()") // === ['one', 'two', 'three'];
var template = populater.template("keys()"); template.context(data, altCTX) // === ['one', 'two', 'three']; #+END_SRC
FAQs
Cross platform string syntax for reliably extracting object data
The npm package populater receives a total of 1 weekly downloads. As such, populater popularity was classified as not popular.
We found that populater 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.