I wanted a quick way to open an `@xstate/inspect` panel targeting a local file. By running a quick CLI command, you can target a single file with `vite`, build it with `esbuild`, and open it in the browser.
XState inspection utilities
Inspection utilities for state, actors, workflows, and state machines.
Finite State Machines and Statecharts for the Modern Web.
XState for finite state machines
XState tools for React
string representations of objects in node and the browser
Determine if the JS environment has Symbol support. Supports spec, or shams.
Try it out at https://xstate-parser-example-site.vercel.app/
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.
Does this JS environment support the `name` property on functions?
Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
XState graph utilities
Is this value negative zero? === will lie to you
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Determine if a value is an ES6 Symbol or not.
Determine if a function is a native generator function.
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
### xstate typegen <files>
Returns an array of Typed Array names that are available in the current environment
Is this specifier a node.js core module?
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.