
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
self-explain
Advanced tools
self explained tools - starting with "assert"
$ npm install self-explained
var assert = require('self-exlain').assert;
var alpha = 10;
var betha = 7;
assert(alpha / 2 > betha -1);
It controls the expression like assert
does.
If the expression evaluates to false
it will show the expression and the value.
(also throws the Exception)
ASSERT FAILED
alpha / 2 > betha -1 ==== false
var assert = require('self-exlain').assert;
var alpha = 10;
var betha = 7;
eval(assert(alpha / 2 > betha -1));
Adding eval
to the assert It will shows the evaluation of all subexpressions
ASSERT FAILED
alpha / 2 > betha -1 ==== false
alpha / 2 ==== 5
betha -1 ==== 6
alpha ==== 10
betha ==== 7
Function assertCatch
controls that an Error been throwed.
assertCatch(function{
if(error){
throw new Error('an error');
}
}, /an error/);
NPM version | Device | OS | nav |
---|---|---|---|
0.10.0 | HTC Desire | Android 2.2.2 | Android 2.2.2 |
0.10.0 | Samgsung Galaxy Note 4 | Android 5.1.1 | Samsung Internet 4.0.0 |
0.10.2 | Samgsung Galaxy Note 4 | Android 6.0.1 | Chrome Mobile 50.0.2661 |
0.10.0 | Blue Vivo Air LTE | Android 5.0.2 | Chrome Mobile 50.0.2661 |
0.10.0 | iPad mini Retina | iOS 8.4.0 | Mobile Safari 8.0.0 |
0.10.0 | VMWare | WinXP | IE 8.0.0 |
FAQs
self explained tools - starting with "assert"
The npm package self-explain receives a total of 11 weekly downloads. As such, self-explain popularity was classified as not popular.
We found that self-explain 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.