PythonMonkey   v0.9.1 (dev)
Loading...
Searching...
No Matches
require.py File Reference

Namespaces

namespace  pythonmonkey
 
namespace  pythonmonkey.require
 

Functions

Union[Dict[str, int], bool] pythonmonkey.require.statSync_inner (str filename)
 
str pythonmonkey.require.readFileSync (filename, charset)
 
bool pythonmonkey.require.existsSync (str filename)
 
Dict pythonmonkey.require.load (str filename)
 
 pythonmonkey.require.createRequire (filename, Union[List[str], Literal[False]] extraPaths=False, isMain=False)
 
 pythonmonkey.require.runProgramModule (filename, argv, extraPaths=[])
 
 pythonmonkey.require.require (str moduleIdentifier)
 

Variables

 pythonmonkey.require.node_modules
 
dict pythonmonkey.require.evalOpts = {'filename': __file__, 'fromPythonFrame': True}
 
 pythonmonkey.require.encoding
 
 pythonmonkey.require.globalThis = pm.eval("globalThis;", evalOpts)
 
 pythonmonkey.require.pmEval
 
 pythonmonkey.require.dir
 
 pythonmonkey.require.isCompilableUnit
 
 pythonmonkey.require.nodeModules
 
 pythonmonkey.require.print
 
 pythonmonkey.require.write
 
 pythonmonkey.require.read
 
 pythonmonkey.require.eval
 
 pythonmonkey.require.exec
 
 pythonmonkey.require.getenv
 
 pythonmonkey.require.paths
 
 pythonmonkey.require.exit
 
 pythonmonkey.require.bootstrap = pm.eval(, evalOpts)
 
 pythonmonkey.require.statSync_inner
 
 pythonmonkey.require.readFileSync
 
 pythonmonkey.require.existsSync
 
 pythonmonkey.require.initCtxModule = pm.eval( + ctxModuleSource.read() + , {'filename': node_modules + "/ctx-module/ctx-module.js", 'lineno': 0})
 
 pythonmonkey.require.load
 
 pythonmonkey.require.createRequireInner = pm.eval(, evalOpts)
 
 pythonmonkey.require.requireFromDisk
 
 pythonmonkey.require.inspect