node-minecraft-protocol/src/ursa.js
Romain Beaumont 1226f0f520 split index.js into mainly createClient.js and createServer.js
also create a few other files containing common information and functions :
* mcHexDigest.js which contain the function of the same name used in both createClient.js and createServer.js
* ursa.js which handle the abstraction on top of ursa and ursa-purejs : used in both createClient.js and createServer.js
* version.js used in index.js, createClient.js and createServer.js
2015-07-27 02:26:36 +02:00

9 lines
268 B
JavaScript

var ursa;
try {
ursa = require("ursa");
} catch(e) {
console.log("You are using a pure-javascript implementation of RSA.");
console.log("Your performance might be subpar. Please consider installing URSA");
ursa = require("ursa-purejs");
}
module.exports=ursa;