Enigma machine for node! Initialize the machine: var Enigma = module.require('./enigma.js'); var e = new Enigma(); Type stuff! console.log(e.type('Hallo Welt!')); To decode, reset the rotors: e.reset(''); Check out more examples in runEnigma.js