Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 344 Bytes
import js.Node;
class Ex1 {
public static function main() {
trace(Node.process.memoryUsage());
trace(Node.process.memoryUsage().heapTotal);
Node.dns.resolve("ipowerhouse.com","A",function(err,ips:Array<Dynamic>) {
trace(ips);
});
}
}
// Compile with
// haxe -D nodejs -cp . -js ex1.js -main Ex1