ga-wdi-boston / cipher-challenge

Other
0 stars 70 forks source link

commit solution with bonuses #26

Closed jenweber closed 8 years ago

jenweber commented 8 years ago

My solution works as expected in Node but I had to do weird things for module.exports to work. How should I have formatted the module.exports in the given format?

Format I was supposed to use:

let ROT13Cipher = {
// what goes here???
  };

module.exports = ROT13Cipher;

My own format:

module.exports.encode = encode;
module.exports.decode = decode;

To run the file, cipher.encode('Hello Jen', 13) where 13 is the offset for the custom cipher