Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc.. Also supports named functions detections aka javascript classes
Small node.js module that dramatically extends functionality of native typeof
Inspired by Batman.js typeOf util
UPD: now it returns lowercased name of any javascript class. Thanks to @BallBearing for idea
$ npm install typeof
var typeOf = require('typeof');
console.log(typeOf("a string"));
// -> "string"
console.log(typeOf([1, 2, 3, "array"]));
// -> "array"
console.log(typeOf(null));
// -> "null"
console.log(typeOf(new Buffer(0)));
// -> "buffer"
function MyClass() {
this.is = "class constructor"
}
console.log(typeOf(new MyClass));
// ->"myclass"
FAQs
Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc.. Also supports named functions detections aka javascript classes
We found that typeof 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.