Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

Accessing builtin modules (Eg: crypto.subtle)

Open MayaankAshok opened this issue 2 years ago • 0 comments

Is there any way to access builtin modules, eg: crypto.subtle. Node.js documentation mentions 2 methods:

  1. globalThis . This is not available in js2py
  2. require("node:crypto") : As this is not a npm install, this too fails using js2py.require

Is there a method to access it via window.crypto.subtle ?

MayaankAshok avatar Jul 27 '23 09:07 MayaankAshok