San-CLI inspect command
string representations of objects in node and the browser
Determine if the JS environment has Symbol support. Supports spec, or shams.
Determine if the current node version supports the `--preserve-symlinks` flag.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Determine if a function is a native generator function.
Returns an array of Typed Array names that are available in the current environment
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
Is this value a JS FinalizationRegistry? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this specifier a node.js core module?
Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Does this JS environment support the `name` property on functions?
Is this value an ES BigInt?
Is this value negative zero? === will lie to you
Determine if the JS environment has BigInt support.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Determine if a value is an ES6 Symbol or not.
Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.
Is this an arguments object? It's a harder question than you think.