
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Cross-vm type checking utils for javascript
npm install --save istype
var is = require('istype');
is.func(Object); // true
is.number(5); // true
is.number(new Number(5)); // true
is.boolean(false); // true
is.boolean(new Boolean(false)); // true
is.string('string'); // true
is.string(new String('string')); // true
is.nil(null); // true
is.nil(undefined); // true
is.undefined(undefined); // true
is.undefined(null); // false
is.regexp(/regexp/); // true
is.regexp(new RegExp('regexp')); // true
is.date(new Date()); // true
is.array([]); // true
is.array(new Array()); // true
is.type(null); // 'null'
is.type(undefined) // 'undefined'
is.type(5); // 'number'
is.type(new Number(5)); // 'number'
is.type(true); // 'boolean'
is.type(new Boolean(true)); // 'boolean'
is.type('str'); // 'string'
is.type(new String('str')); // 'string'
is.type(new Date()); // 'date';
is.type(new RegExp('regexp')); // 'regexp'
is.type(/regexp/); // 'regexp'
is.type(new Array()); // 'array'
is.type([]); // 'array'
is.type(new Function()); // 'function'
is.type(Object); // 'function'
FAQs
Cross-vm type checking utils for javascript
We found that istype 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.