webapi-eca/node_modules/my-cryptico/index.js

8 lines
270 B
JavaScript
Raw Permalink Normal View History

var fs = require('fs');
// We do this so we use the exact same library 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 = module.exports = cryptico;