@observablehq/inspector@5.0.1

also see @observablehq/inspector

~~~js
    import {inspect, Inspector} from '@tomlarkworthy/inspector'
~~~
function inspect(value) {
  const root = document.createElement("DIV");
  new Inspector(root).fulfilled(value);
  const element = root.firstChild;
  element.remove();
  element.value = value; // for viewof
  return element;
}
const src = unzip(FileAttachment("inspector-5@1.0.1.js.gz"))
const unzip = async (attachment) => {
  const response = await new Response(
    (await attachment.stream()).pipeThrough(new DecompressionStream("gzip"))
  );

  return response.blob();
}
const Inspector = (async () => {
  const objectURL = URL.createObjectURL(
    new Blob([src], { type: "application/javascript" })
  );
  try {
    return (await require(objectURL)).Inspector;
  } finally {
    URL.revokeObjectURL(objectURL); // Ensure URL is revoked after import
  }
})