Search results
67 packages found
Type check values. This is a fork of sindresorhus/is, but with CommonJS support.
Better 'typeof'. Detects real type of the objects like 'Array()', 'new Number(1)', 'new Boolean(true)', etc.
Returns type of value or object instance. An alternative to typeof operator.
- typeof
- instype
- type-of
- is-type
- is-type-of
- types
- classof
- class-of
- kind
- is-kind
- is-kind-of
- constructor
- instance
- memberof
Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].
- assert
- assertion
- check
- checking
- checktype
- clean
- cleanstack
- err
- error
- kind
- kindof
- kinds
- simple
- simplicity
- View more
Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.
Check type of given javascript value. Support promises, generators, streams, and native types. Built on [kind-of][] lib.
List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc.
- bool
- boolean
- buffer
- check
- checking
- error
- is
- is-boolean
- is-buffer
- is-error
- is-promise
- is-stream
- json
- kind
- View more
A Pulumi package for creating and managing kind cloud resources.
Plugin for [minibase][] and [base][], that adds assertion methods - most of [assert-kindof][] methods and built-ins assert module.
TypeScript Kind-Level Programming implementation
Tests to see if the prototype property of a constructor appears anywhere in the prototype chain of an value.
- instanceof
- instof
- inst-of
- instance-of
- is-instance
- is-instance-of
- instances
- classof
- class-of
- kind
- is-kind
- is-kind-of
- constructor
- memberof
Base class for easily creating meaningful and quiet by default Error classes with sane defaults and assertion in mind.
Use abbreviations for checking type of given value. Like `kindof(val, 'soa')` to check that value is string, object or array.
Functions to create, process and test objects, maps, arrays, sets
A thin wrapper for fs to group files by type
Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.
Type check values: `is.string('🦄') //=> true`
✅ check if a value is Promise-like