
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.