npm

14 packages found

M
Q
P

Description

Returns true if the value is an object and not an array or null.

Keywords

Publisher

published 4.0.07 months ago
M
Q
P

Description

Parse, normalize and validate given semver shorthand (e.g. [email protected]) to object.

Keywords

Publisher

published 1.1.14 years ago
M
Q
P

Description

List of all javascript types. Used and useful for checking, validation, sanitizing and testing. Like isStream, isPromise, isWeakset and etc.

Keywords

Publisher

published 1.0.14 years ago
M
Q
P

Description

👺 weak but accurate type checking that returns a string representation of input's type

Keywords

Publisher

published 1.2.5a year ago
M
Q
P

Description

Better 'typeof'. Detects real type of the objects like 'Array()', 'new Number(1)', 'new Boolean(true)', etc.

Keywords

Publisher

published 2.0.110 months ago
M
Q
P

Description

Thin sugar layer on top of `testit` framework, `is-kindof` and `assert`.

Keywords

Publisher

published 0.1.05 years ago
M
Q
P

Description

Check native type of value and throw AssertionError if not okey. Clean stack traces. Simplicity. Built on [is-kindof][].

Keywords

Publisher

published 2.0.13 years ago
M
Q
P

Description

Check type of given javascript value. Support promises, generators, streams, and native types. Built on [kind-of][] lib.

Keywords

Publisher

published 3.0.13 years ago
M
Q
P

Description

Additional functionality to [kind-of][] type check utility. Support promises, generators, streams, errors.

Keywords

Publisher

published 1.0.43 years ago
M
Q
P

Description

Use abbreviations for checking type of given value. Like `kindof(val, 'soa')` to check that value is string, object or array.

Keywords

Publisher

published 1.0.54 years ago
M
Q
P

Description

Plugin for [minibase][] and [base][], that adds assertion methods - most of [assert-kindof][] methods and built-ins assert module.

Keywords

Publisher

published 1.0.23 years ago
M
Q
P

Description

Base class for easily creating meaningful and quiet by default Error classes with sane defaults and assertion in mind.

Keywords

Publisher

published 2.0.04 years ago
M
Q
P

Description

An extension to the `mout/lang` utilities

Keywords

Publisher

published 0.6.04 years ago
M
Q
P

Description

ECMAScript 2015 compliant typeof extension

Keywords

Publisher

published 0.5.14 years ago