node_interop library

Node interop library.

This library exports only globally available APIs. Built-in Node modules can be imported with import 'package:node_interop/{moduleName}.dart, e.g. for the "fs" module:

import 'package:node_interop/fs.dart';

List<String> contents = fs.readdirSync('/tmp');

Classes

Buffer
BufferConstants
BufferModule
CPUUsage
Date
Immediate
JsAssertionError
JsError
JavaScript Error object.
JsRangeError
JsReferenceError
JsSyntaxError
JsSystemError
JsTypeError
NodeJsError
Process
Promise
Release
Timeout

Properties

buffer BufferModule
read-only
console Console
read-only
exports → dynamic
Reference to the main module's exports object. [...]
read-only
module Module
Reference to the main module's Module object. [...]
read-only
process Process
read-only
undefined → dynamic
@JS(), read-only

Functions

clearImmediate(Immediate immediate) → void
@JS()
clearInterval(Timeout timeout) → void
@JS()
clearTimeout(Timeout timeout) → void
@JS()
objectKeys(dynamic object) → List<String>
Returns a list of keys in a JavaScript object. [...]
@JS('Object.keys')
require(String id) → dynamic
Loads module with specified id. [...]
setExport(String key, Object value) → void
Registers property with key and value in the module exports object.
setImmediate(Function callback, [ dynamic arg1 dynamic arg2 dynamic arg3 dynamic arg4 dynamic arg5 dynamic arg6 dynamic arg7 dynamic arg8 dynamic arg9 ]) Immediate
@JS()
setInterval(Function callback, num delay, [ dynamic arg1 dynamic arg2 dynamic arg3 dynamic arg4 dynamic arg5 dynamic arg6 dynamic arg7 dynamic arg8 dynamic arg9 ]) Timeout
@JS()
setTimeout(Function callback, num delay, [ dynamic arg1 dynamic arg2 dynamic arg3 dynamic arg4 dynamic arg5 dynamic arg6 dynamic arg7 dynamic arg8 dynamic arg9 ]) Timeout
@JS()