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.
nyks provide a set of "missing" stuffs in nodejs basic api. All those functions will eventually end up in the official API :-).
require('child_process').exec_window(cmd, args, callback); child_process.exec equivalent for windowed applications.
require('child_process').passthru(cmd, args, callback);
require('child_process').passthru(cmd, {args:args,env:env}, callback); callback(err, exit_code, last_stdout_line);
require('fs').deleteFolderRecursive(path); Recursive folder deletion
require('fs').md5File(file_path, callback)
require('fs').md5FileSync(file_path) Return md5 checksum of a file
require('fs').filesizeSync(path);
require('fs').filemtimeSync(path);
require('fs').isFileSync(path)
require('fs').isDirectorySync(path)
require('fs').tmppath (ext) Return a unique file path in OS temp dir
require('fs').renameCross(src, dest, callback) Rename src to dest (even on cross devices)
require('http').downloadFile(url, file_path, callback) Download a remote file to a local file
require('http').json(url, callback) Fetch a remote JSON object
crypt/pemme(str, armor) Create a PEM encoded armor around a desired string (chunk size 65)
crypt/md5 (body) Return the base md5 bash
crypt/openssh2pem(body) Return the PEM version of an openssh public key (yeah !)
Object.sort(obj, keys) Return a new object based on obj's existings keys (see Object.subset)
Object.column(obj, column_key, index_key) Column mode of obj (see http://php.net/manual/fr/function.array-column.php)
Object.set(obj, k, v) Set an object property value (mostly for callback/map usage)
Object.mask_join(obj, glue, mask) Apply join(glue, map(obj, util.format(mask, k, v)));
string/chunk(basestr, chunksize) Split a string into chunk of specified size.
String.prototype.startsWith(str) Return boolean
String.prototype.endsWith(str) Return boolean
String.prototype.replaces(dict) Replace key => value in current string
String.prototype.rreplaces(dict) Recursive (iterative) replaces
String.prototype.stripEnd(str) Return trimmed string of "str" if present (else, leave untouched)
String.prototype.rot13() Rot13 of current string
String.prototype.trimchars(chars) Trim (from begining & end) specific chars from a string
bool(val) Return boolean value of *val with "f", "false", "n" and "no" casted as "false" (case insensitive)
guid() Return a guid
FAQs
nodejs exupery style
We found that nyks 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
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.