Tag Archives: node

More on Node VM

So I wanted to understand a bit more about what is going on under the covers with Node VM. To do that, I pulled open the node code itself. To start with, when we do a require(‘vm’) we are referencing … Continue reading

Posted in Javascript, Node.js | Tagged , , , , | 3 Comments

Node VM Continued

One thing I noticed today is that this works: var util = require(’util’); var vm = require(’vm’);   var contextObject = { } contextObject.contextMethod = function(text) { console.log(text); } var myContext = vm.createContext(contextObject); myContext.contextMethod2 = function(text) { console.log(text); } var … Continue reading

Posted in Javascript, Node.js | Tagged , , , , , , | Leave a comment

Node.js Virtual Machine (vm) Usage

For my project I want to have have run time mutable code. There may be some better ways to do this in node that I do not know, but the easiest I could find in base was the vm module. … Continue reading

Posted in Javascript, Node.js | Tagged , , , , , | 3 Comments

Simple Telnet Server in Node.js

I was playing with Node.js and started putting together a simple telnet server to learn a bit about it. I am going to walk through it in phases from “super simple” to more complex. But first, let’s ask ourselves – … Continue reading

Posted in Javascript, Node.js | Tagged , , , , , | 20 Comments

Installing Node.js

An acquaintance of mine noticed that I put together the previous post regarding Javascript inheritance in Node.js, and asked what that was. When I explained, the next question of course was how to install it. I don’t want to reinvent … Continue reading

Posted in Javascript, Node.js | Tagged , , , , , | Leave a comment

Javascript Objects and Inheritance with Node.js

It has been years since I was particularly interested in the Javascript language. At the time it was slow, and I really felt that the virtual machine environment of Java provided everything I could possibly need in developing software – … Continue reading

Posted in Javascript, Node.js | Tagged , , , , , , , , , | 1 Comment