nodejs_interop.io library

File, socket, HTTP, and other I/O support for Node.js applications.

Classes

BytesBuilder
Builds a list of bytes, allowing bytes and lists of bytes to be added at the end. [...]
Directory
A reference to a directory on the file system.
ErrorCodes
Operating system error codes.
File
A reference to a file on the file system.
FileMode
FileStat
Represents the result of calling the POSIX stat function on a file system entity. It is an immutable object, representing the snapshotted values returned by the stat() call.
FileSystem
A generic representation of the file system.
FileSystemCreateEvent
File system event for newly created file system objects.
FileSystemDeleteEvent
File system event for deletion of file system objects.
FileSystemEntity
The common super class for File, Directory, and Link objects.
FileSystemEntityType
FileSystemEvent
Base event class emitted by FileSystemEntity.watch.
FileSystemModifyEvent
File system event for modifications of file system objects.
FileSystemMoveEvent
File system event for moving of file system objects.
InternetAddress
An internet address. [...]
InternetAddressType
InternetAddressType is the type an InternetAddress. Currently, IP version 4 (IPv4) and IP version 6 (IPv6) are supported.
IOSink
A combined byte and text output.
A reference to a symbolic link on the file system.
NetworkInterface
Represents an active network interface on the current system.
OSError
Platform
Information about the environment in which the current program is running. [...]
Process
The means to execute a program. [...]
ProcessInfo
Provides methods for retrieving information about the current process.
ProcessManager
Manages the creation of processes.
ProcessResult
ProcessResult represents the result of running a non-interactive process started with Process.run or Process.runSync.
ProcessSignal
ProcessSignal is used to send a specific signal to a child process; see Process.kill.
ProcessStartMode
Modes for running a new process.
RandomAccessFile
Provides random access to the data in a file.
SystemEncoding
The system encoding is always UTF-8 on Node.js platform.
ZLibOption
Exposes ZLib options for input parameters. [...]

Constants

APPEND → const FileMode
The mode for opening a file for reading and writing to the end of it. The file is created if it does not already exist.
f.FileMode.APPEND
READ → const FileMode
The mode for opening a file only for reading.
f.FileMode.READ
SYSTEM_ENCODING → const SystemEncoding
The current system encoding. Always UTF-8 on Node.js platform.
const SystemEncoding()
WRITE → const FileMode
The mode for opening a file for reading and writing. The file is overwritten if it already exists. The file is created if it does not already exist.
f.FileMode.WRITE
WRITE_ONLY → const FileMode
Mode for opening a file for writing only. The file is overwritten if it already exists. The file is created if it does not already exist.
f.FileMode.WRITE_ONLY
WRITE_ONLY_APPEND → const FileMode
Mode for opening a file for writing only to the end of it. The file is created if it does not already exist.
f.FileMode.WRITE_ONLY_APPEND

Properties

exitCode int
The global exit code for the Node.js VM.
read / write
pid int
The PID of the current process.
read-only

Functions

exit(int code) → void
Exits the Node.js process immediately with the given exit code.
sleep(Duration duration) → void
Sleeps for the duration specified in duration.

Enums

FileLock

Exceptions / Errors

FileSystemException
IOException
ProcessException
SignalException
SocketException