webapi-eca/node_modules/my-cryptico/index.js
2014-03-27 08:03:35 +01:00

8 lines
261 B
JavaScript

var fs = require('fs');
// We do this so we use the exact same librar in the browser and in node
// Read and eval library
// Eval is evil...
var filedata = fs.readFileSync('./webpages/public/js/cryptico.js','utf8');
eval(filedata);
exports.cryptico = cryptico