The Wayback Machine - https://web.archive.org/web/20210915083405/http://github.com/inspect-js
Skip to content
@inspect-js

Inspect JS

JavaScript value inspection tools.

inspect-js

This github and npm organization houses JavaScript projects that help you look at stuff.

Predicates

Functions that ask a question and produce a yes or no answer (`true` or `false`).
  • is-arguments - github - npm - Is this an arguments object? It's a harder question than you think.
  • is-arrow-function - github - npm - Determine if a function is an ES6 arrow function or not.
  • is-bigint - github - npm - Is this value an ES BigInt?
  • is-boolean-object - github - npm - Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-boxed-primitive - github - npm - Is this value a boxed primitive? Shim for node's util.isBoxedPrimitive.
  • is-callable - github - npm - Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
  • is-core-module - github - npm - Is this specifier a node.js core module?
  • is-date-object - github - npm - Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-finalizationregistry - github - npm - Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-generator-function - github - npm - Determine if a function is a native generator function.
  • is-map - github - npm - Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-negative-zero - github - npm - Is this value negative zero? === will lie to you
  • is-number-object - github - npm - Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-object - github - npm - Checks whether a value is an object
  • is-regex - github - npm - Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
  • is-set - github - npm - Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-shared-array-buffer - github - npm - Is this value a JS SharedArrayBuffer?
  • is-string - github - npm - Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-symbol - github - npm - Determine if a value is an ES6 Symbol or not.
  • is-typed-array - github - npm - Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.
  • is-weakmap - github - npm - Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-weakref - github - npm - Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
  • is-weakset - github - npm - Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Comparisons

Packages that compare two things.
  • is-equal - github - npm - Are these two values conceptually equal?
  • deep-equal - github - npm - node's assert.deepEqual algorithm

Environment

Packages that tell you about the JS env.
  • available-typed-arrays - github - npm - Returns an array of Typed Array names that are available in the current environment
  • functions-have-names - github - npm - Does this JS environment support the name property on functions?
  • has-bigints - github - npm - Determine if the JS environment has BigInt support.
  • has-dynamic-import - github - npm - Does the current environment have import() support?
  • has-object-spread - github - npm - check if the environment supports { ...a } spread syntax
  • has-package-exports - github - npm - Does the current node version have support for the "exports" field in package.json?
  • has-package-imports - github - npm - Does the current node version have support for the "imports" field in package.json?
  • has-package-self-reference - github - npm - Does the current node version have support for requiring/importing its own name?
  • has-private-fields - github - npm - Determine if the JS environment has private fields (class { #x; }) support.
  • has-strict-mode - github - npm - Does the current JS environment have strict mode? ES5+ should; but let's not assume.
  • has-symbols - github - npm - Determine if the JS environment has Symbol support. Supports spec, or shams.
  • has-template-literals - github - npm - Determine if the JS environment has template literal support.
  • has-tostringtag - github - npm - Determine if the JS environment has Symbol.toStringTag support. Supports spec, or shams.
  • has-typed-arrays - github - npm - Does this environment have JS Typed Arrays?

Describe

Packages that tell you about a specific JS value.
  • get-symbol-description - github - npm - Gets the description of a Symbol. Handles Symbol() vs Symbol('') properly when possible.
  • object-inspect - github - npm - string representations of objects in node and the browser
  • typed-array-length - github - npm - Robustly get the length of a Typed Array
  • which-boxed-primitive - github - npm - Which kind of boxed JS primitive is this?
  • which-builtin-type - github - npm - What is the type of this builtin JS value?
  • which-collection - github - npm - Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.
  • which-typed-array - github - npm - Which kind of Typed Array is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Pinned

  1. node's assert.deepEqual algorithm

    JavaScript 645 104

  2. string representations of objects in node and the browser

    JavaScript 108 22

  3. Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.

    JavaScript 35 10

  4. is-equal Public

    Are these two values conceptually equal?

    JavaScript 54 4

  5. Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.

    JavaScript 9 4

  6. Which kind of boxed JS primitive is this?

    JavaScript 6

Repositories

Top languages

Loading…