{ } qjs-modules

std

Source: QuickJS's own std module

The std module of QuickJS (std.out, std.err, std.open(), std.loadFile(), std.parseExtJSON(), std.gc(), ...). Scripts that must run on node, bun and deno should use fs and process instead; see the QuickJS documentation for the standard members.

Export list

Generated by utilities/doc-api.js from the std dump of utilities/api-surface.sh: 56 members. Edit the text above this block, not the block.

Functions: __printObject(), evalScript(), exit(), fdopen(), gc(), getenv(), getenviron(), loadFile(), loadScript(), open(), parseExtJSON(), popen(), printf(), puts(), setenv(), sprintf(), strerror(), tmpfile(), unsetenv(), urlGet()

Values: SEEK_CUR = 1, SEEK_END = 2, SEEK_SET = 0

Error

object

  • static values: EACCES = 13, EBADF = 9, EBUSY = 16, EEXIST = 17, EINVAL = 22, EIO = 5, ENOENT = 2, ENOSPC = 28, ENOSYS = 38, EPERM = 1, EPIPE = 32

err

object

  • static methods: columns(), fd(), getColorDepth(), getWindowSize(), hasColors(), isTTY(), rows()

in

object

  • static methods: columns(), fd(), isTTY(), rows()

out

object

  • static methods: columns(), fd(), getColorDepth(), getWindowSize(), hasColors(), isTTY(), rows()