ArhanChaudhary · GitHub

Repository files navigation

scopeinspect-js is a Chrome extension that utilizes the Chrome DevTools Protocol to programmatically inspect internal JavaScript state that would otherwise be inaccessible, such as WeakSet entries, private class properties, and closure variables. It serves as an archaic answer to this forum post.

Installation

https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked

Usage

var Secret = (() => {
  let _secret;
  return function Secret(secret) {
    _secret = secret;
  }
})();
let obj = new Secret(1337);
console.log(await scopeInspect(obj));
// {_secret: 1337}

About

Programmatically inspect internal JavaScript state

Topics

Resources

Readme

MIT license

Activity

Stars

4 stars

Watchers

1 watching

Forks

1 fork

Releases

Packages

Contributors

Languages

Read the original on github.com ↗