node_io library
Node.js I/O system for Dart.
This library is designed so that you should be able to replace imports of
dart:io
with package:node_io/node_io.dart
and get the same functionality
working without any additional modifications.
Classes
- BytesBuilder
- Builds a list of bytes, allowing bytes and lists of bytes to be added at the end.
- ContentType
- A MIME/IANA media type used as the value of the HttpHeaders.contentTypeHeader header.
- Cookie
- Representation of a cookie. For cookies received by the server as Cookie header values only name and value properties will be set. When building a cookie for the 'set-cookie' header in the server and when receiving cookies in the client as 'set-cookie' headers all fields can be used.
- Datagram
- A data packet received by a RawDatagramSocket.
- Directory
- A reference to a directory (or folder) on the file system.
- File
- A reference to a file on the file system.
- FileMode
- The modes in which a File can be opened.
- FileStat
- A FileStat object represents the result of calling the POSIX stat() function on a file system object. It is an immutable object, representing the snapshotted values returned by the stat() call.
- FileSystemEntity
- The common superclass of File, Directory, and Link.
- FileSystemEntityType
- The type of an entity on the file system, such as a file, directory, or link.
- HeaderValue
- Representation of a header value in the form:
- HttpConnectionInfo
- Information about an HttpRequest, HttpResponse, HttpClientRequest, or HttpClientResponse connection.
- HttpDate
- Utility functions for working with dates with HTTP specific date formats.
- HttpHeaders
- Headers for HTTP requests and responses.
- HttpRequest
- A server-side object that contains the content of and information about an HTTP request.
- HttpResponse
- An HTTP response, which returns the headers and data from the server to the client in response to an HTTP request.
- HttpServer
- A server that delivers content, such as web pages, using the HTTP protocol.
- HttpStatus
- HTTP status codes. Exported in dart:io and dart:html.
- InternetAddress
- An internet address.
- InternetAddressType
- The type, or address family, of an InternetAddress.
- IOSink
- A combined byte and text output.
- Link
- Link objects are references to filesystem links.
- NetworkInterface
- A NetworkInterface represents an active network interface on the current system. It contains a list of InternetAddresses that are bound to the interface.
- NodeHttpRequest
- Server side HTTP request object which delegates IO operations to Node.js native representations.
- NodeHttpResponse
- Server side HTTP response object which delegates IO operations to Node.js native representations.
- Platform
- Information about the environment in which the current program is running.
- RandomAccessFile
- Random access to the data in a file.
- Stdout
Constants
- nodeFileSystem → const FileSystem
-
A
file
package filesystem backed by Node.js'sfs
API.
Properties
- exitCode ↔ int
-
Get the global exit code for the current process.
getter/setter pair
- pid → int
-
Returns the PID of the current process.
no setter
- stderr → Stdout
-
The standard output stream of errors written by this program.
no setter
- stdout → Stdout
-
The standard output stream of data written by this program.
no setter
Exceptions / Errors
- FileSystemException
- Exception thrown when a file operation fails.
- HttpException
- OSError
- An Exception holding information about an error from the operating system.