Expand description
Which runtime a script believes it is running in.
process.version, process.release.name, process.argv0 and
navigator.userAgent all name the runtime. Node’s own values are
not an option: a library that branches on process.versions.node
would take a path this runtime cannot follow. The values here default
to this crate’s, and a host that ships its own binary sets its own
before installing the globals, so a user-agent sniffer or a
process.release check sees the binary the user is actually running.
Structs§
- Identity
- The runtime’s name and version as scripts see them.
Functions§
- get
- The realm’s identity, or the crate default when the host set none.
- quickjs_
version - The QuickJS engine version, as the engine itself reports it.
- set
- Record the identity every later
installreads. Call beforecrate::initorcrate::node::process::install; a second call replaces the first.