Modules
PandJS supports only ES6 modules. CommonJS support is not planned at all.
Standard library
PandJS exposes modules for interacting with operating system resources like files, sockets etc.
Every built-in module is prefixed with std:
.
This is example how to import modules from the standard library:
Get meta data of current module
Sometimes you may want to meta data like URL, filename of current module.
You can find it inside import.meta
object, which looks like: