>_Skillful
Need help with advanced AI agent engineering?Contact FirmAdapt
Inspect JS

Inspect JS

Organization

@inspect-js

JavaScript value inspection tools.

On GitHub since August 2019

58

Published Tools

0

Total Stars

92,808,528

Weekly Downloads

52

GitHub Followers

78

Public Repos

Published Tools

58 Skillsacross 1 category

array-buffer-byte-length

ljharb

Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.

SkillAI Tool
1 dir

available-regexp-flags

ljharb

Which regular expression flags does the current environment support?

SkillAI Tool
1 dir

available-typed-arrays

ljharb

Returns an array of Typed Array names that are available in the current environment

SkillAI Tool
1 dir

data-view-buffer

ljharb

Get the ArrayBuffer out of a DataView, robustly.

SkillAI Tool
1 dir

data-view-byte-length

ljharb

Get the byteLength out of a DataView, robustly.

SkillAI Tool
1 dir

data-view-byte-offset

ljharb

Get the byteOffset out of a DataView, robustly.

SkillAI Tool
1 dir

deep-equal-json

ljharb

`deep-equal`, but only for JSON-supported values.

SkillAI Tool
1 dir

functions-have-names

ljharb

Does this JS environment support the `name` property on functions?

SkillAI Tool
1 dir

get-symbol-description

ljharb

Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.

SkillAI Tool
1 dir

has-dynamic-import

ljharb

Does the current environment have `import()` support?

SkillAI Tool
1 dir

has-package-exports

ljharb

Does the current node version have support for the "exports" field in package.json?

SkillAI Tool
1 dir

has-property-descriptors

ljharb

Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.

SkillAI Tool
1 dir

has-proto

ljharb

Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?

SkillAI Tool
1 dir

has-tostringtag

ljharb

Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.

SkillAI Tool
1 dir

hasown

ljharb

A robust, ES3 compatible, "has own property" predicate.

SkillAI Tool
1 dir

is-accessor-descriptor

ljharb

Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.

SkillAI Tool
1 dir

is-array-buffer

ljharb

Is this value a JS ArrayBuffer?

SkillAI Tool
1 dir

is-bigint

ljharb

Is this value an ES BigInt?

SkillAI Tool
1 dir

is-core-module

ljharb

Is this specifier a node.js core module?

SkillAI Tool
1 dir

is-data-descriptor

ljharb

Returns true if a value has the characteristics of a valid JavaScript data descriptor.

SkillAI Tool
1 dir

is-data-view

ljharb

Is this value a JS DataView? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.

...more
SkillAI Tool
1 dir

is-descriptor

ljharb

Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.

...more
SkillAI Tool
1 dir

is-finalizationregistry

ljharb

Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-map

ljharb

Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-set

ljharb

Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-shared-array-buffer

ljharb

Is this value a JS SharedArrayBuffer?

SkillAI Tool
1 dir

is-weakmap

ljharb

Is this value a JS WeakMap? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-weakref

ljharb

Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-weakset

ljharb

Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

node-exports-info

ljharb

Info about node `exports` field support: version ranges, categories, etc.

SkillAI Tool
1 dir

supports-preserve-symlinks-flag

ljharb

Determine if the current node version supports the `--preserve-symlinks` flag.

SkillAI Tool
1 dir

typed-array-buffer

ljharb

Get the ArrayBuffer out of a TypedArray, robustly.

SkillAI Tool
1 dir

typed-array-byte-length

ljharb

Robustly get the byte length of a Typed Array

SkillAI Tool
1 dir

typed-array-byte-offset

ljharb

Robustly get the byte offset of a Typed Array

SkillAI Tool
1 dir

typed-array-length

ljharb

Robustly get the length of a Typed Array

SkillAI Tool
1 dir

which-boxed-primitive

ljharb

Which kind of boxed JS primitive is this?

SkillAI Tool
1 dir

which-builtin-type

ljharb

What is the type of this builtin JS value?

SkillAI Tool
1 dir

which-collection

ljharb

Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.

...more
SkillAI Tool
1 dir

deep-equal

ljharb

node's assert.deepEqual algorithm

SkillAI Tool
1 dir

buffer-equal

ljharb

return whether two buffers are equal

SkillAI Tool
1 dir

defined

ljharb

return the first argument that is `!== undefined`

SkillAI Tool
1 dir

has-symbols

ljharb

Determine if the JS environment has Symbol support. Supports spec, or shams.

SkillAI Tool
1 dir

has-template-literals

ljharb

Determine if the JS environment has template literal support.

SkillAI Tool
1 dir

is-arguments

ljharb

Is this an arguments object? It's a harder question than you think.

SkillAI Tool
1 dir

is-async-function

ljharb

Determine if a function is a native async function.

SkillAI Tool
1 dir

is-boolean-object

ljharb

Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-callable

ljharb

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

SkillAI Tool
1 dir

is-date-object

ljharb

Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-generator-function

ljharb

Determine if a function is a native generator function.

SkillAI Tool
1 dir

is-negative-zero

ljharb

Is this value negative zero? === will lie to you

SkillAI Tool
1 dir

is-number-object

ljharb

Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-object

ljharb

Checks whether a value is an object

SkillAI Tool
1 dir

is-regex

ljharb

Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag

SkillAI Tool
1 dir

is-string

ljharb

Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

SkillAI Tool
1 dir

is-symbol

ljharb

Determine if a value is an ES6 Symbol or not.

SkillAI Tool
1 dir

is-typed-array

ljharb

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.

...more
SkillAI Tool
1 dir

object-inspect

ljharb

string representations of objects in node and the browser

SkillAI Tool
92.8M/wk1 dir

which-typed-array

ljharb

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

...more
SkillAI Tool
1 dir