final class node
static const var fs : _fs
static const var path : _path
static const var url : _url
static const var http : _http
static const var https : _https
static const var net : _net
static const var util : _util
static function require(source : string)
: variant
native class EventEmitter
new EventEmitter()
function on(event : string, listener : function () : void)
: void
function on(event : string, listener : function (:variant) : void)
: void
function on(event : string, listener : function (:variant, :variant) : void)
: void
native class process
static var argv : Array.<string>
static __readonly__ var stdin : Stream
static __readonly__ var stdout : Stream
static __readonly__ var stderr : Stream
static __readonly__ var execPath : string
static __readonly__ var env : Map.<string>
static __readonly__ var pid : int
static __readonly__ var arch : string
static __readonly__ var platform : string
static __readonly__ var version : string
static __readonly__ var versions : Map.<string>
static __readonly__ var title : string
new process()
static function on(event : string, listener : function () : void)
: void
static function on(event : string, listener : function (:variant) : void)
: void
static function chdir(directory : string)
: void
static function cwd()
: string
static function exit()
: void
static function exit(status : int)
: void
static function getgid()
: int
static function setgid(id : int)
: void
static function getuid()
: int
static function setuid(id : int)
: void
static function kill(pid : int)
: void
static function kill(pid : int, signal : string)
: void
static function nextTick(callback : function () : void)
: void
static function umask(mask : int)
: int
static function uptime()
: int
static function hrtime()
: Array.<number>
Returns the current high-resolution real time.
static function hrtime(previousTime : Array.<number>)
: Array.<number>
Returns the difference from previousTime in high-resolution real time.
previousTime |
a result of a previous call to process.hrtime() . |
native class os
static __readonly__ var EOL : string
new os()
static function tmpDir()
: string
static function hostname()
: string
static function type()
: string
static function platform()
: string
static function arch()
: string
static function release()
: string
static function uptime()
: number
static function loadavg()
: Array.<number>
static function totalmem()
: number
static function freemem()
: number
static function cpus()
: Array.<_CPUInfo>
static function networkInterfaces()
: Map.<Array.<_IFInfo>>
native class module
static __readonly__ var id : string
static __readonly__ var paths : Array.<string>
new module()
native class Stream extends EventEmitter
__readonly__ var fd : int
__readonly__ var isTTY : boolean
new Stream()
function write(str : string)
: boolean
function write(buffer : Buffer)
: boolean
function end()
: void
native class Buffer
Fixed-sized binary buffer, built in NodeJS.
__readonly__ var length : number
new Buffer(size : number)
new Buffer(array : Array.<int>)
new Buffer(array : Array.<number>)
new Buffer(array : Uint8Array)
new Buffer(str : string, encoding : string)
static function byteLength(str : string, encoding : string)
: number
static function concat(list : Array.<Buffer>, totalLength : number)
: Buffer
function write(str : string, offset : number, length : number, encoding : string)
: number
function toString(encoding : string)
: string
function toString(encoding : string, start : number)
: string
function toString(encoding : string, start : number, end : number)
: string
function copy(targetBuffer : Buffer)
: void
function copy(targetBuffer : Buffer, targetStart : number)
: void
function copy(targetBuffer : Buffer, targetStart : number, sourceStart : number)
: void
function copy(targetBuffer : Buffer, targetStart : number, sourceStart : number, sourceEnd : number)
: void
function slice(start : number)
: Buffer
function slice(start : number, end : number)
: Buffer
function readUInt8(offset : number)
: number
function readUInt16LE(offset : number)
: number
function readUInt16BE(offset : number)
: number
function readUInt32LE(offset : number)
: number
function readUInt32BE(offset : number)
: number
function readInt8(offset : number)
: number
function readInt16LE(offset : number)
: number
function readInt16BE(offset : number)
: number
function readInt32LE(offset : number)
: number
function readInt32BE(offset : number)
: number
function readFloatLE(offset : number)
: number
function readFloatBE(offset : number)
: number
function readDoubleLE(offset : number)
: number
function readDoubleBE(offset : number)
: number
function writeUInt8(value : number, offset : number)
: void
function writeUInt16LE(value : number, offset : number)
: void
function writeUInt16BE(value : number, offset : number)
: void
function writeUInt32LE(value : number, offset : number)
: void
function writeUInt32BE(value : number, offset : number)
: void
function writeInt8(value : number, offset : number)
: void
function writeInt16LE(value : number, offset : number)
: void
function writeInt16BE(value : number, offset : number)
: void
function writeInt32LE(value : number, offset : number)
: void
function writeInt32BE(value : number, offset : number)
: void
function writeFloatLE(value : number, offset : number)
: void
function writeFloatBE(value : number, offset : number)
: void
function writeDoubleLE(value : number, offset : number)
: void
function writeDoubleBE(value : number, offset : number)
: void
function fill(value : number)
: void
function fill(value : number, offset : number)
: void
function fill(value : number, offset : number, end : number)
: void
native class querystring
new querystring()
static function stringify(params : Map.<variant>)
: string
static function stringify(params : Map.<variant>, sep : string)
: string
static function stringify(params : Map.<variant>, sep : string, eq : string)
: string
static function parse(query : string)
: Map.<variant>
static function parse(query : string, sep : string)
: Map.<variant>
static function parse(query : string, sep : string, eq : string)
: Map.<variant>
static function parse(query : string, sep : string, eq : string, options : Map.<variant>)
: Map.<variant>
native class Stats
new Stats()
function isFile()
: boolean
function isDirectory()
: boolean
function isBlockDevice()
: boolean
function isCharacterDevice()
: boolean
function isSymbolicLink()
: boolean
function isFIFO()
: boolean
function isSocket()
: boolean
native class FSWatcher extends EventEmitter
new FSWatcher()
function close()
: void
native class ChildProcess extends EventEmitter
__readonly__ var stdin : Stream
__readonly__ var stdout : Stream
__readonly__ var stderr : Stream
__readonly__ var pid : int
function kill()
: boolean
function kill(signal : string)
: boolean
native class Url
var protocol : Nullable.<string>
var slashes : Nullable.<boolean>
var auth : Nullable.<string>
var host : Nullable.<string>
var port : Nullable.<string>
var hostname : Nullable.<string>
var hash : Nullable.<string>
var search : Nullable.<string>
var query : Nullable.<string>
var pathname : Nullable.<string>
var path : Nullable.<string>
new Url()
native class HTTPServer
new HTTPServer()
function listen(port : int)
: void
function close()
: void
native class ServerRequest extends EventEmitter
__readonly__ var method : string
__readonly__ var url : string
__readonly__ var headers : Map.<string>
__readonly__ var trailers : Map.<string>
__readonly__ var httpVersin : string
__readonly__ var httpVersinMajor : int
__readonly__ var httpVersinMinor : int
new ServerRequest()
function setEncoding(encoding : string)
: void
native class ServerResponse
new ServerResponse()
function writeHead(status : int, headers : Map.<string>)
: void
function writeHead(status : int, responsePhrase : string, headers : Map.<string>)
: void
function write(content : string, encoding : string)
: boolean
function write(content : Buffer)
: boolean
function end()
: boolean
function end(data : string, encoding : string)
: boolean
function end(data : Buffer)
: boolean
native class ClientRequest extends EventEmitter
new ClientRequest()
native class ClientResponse extends EventEmitter
__readonly__ var statusCode : int
__readonly__ var headers : Map.<string>
__readonly__ var trailers : Map.<string>
__readonly__ var httpVersin : string
__readonly__ var httpVersinMajor : int
__readonly__ var httpVersinMinor : int
new ClientResponse()