UNPKG

pp-certificate

Version:

A very simple script for encoding and decoding pkcs7/pkcs6/x509 certification in Javascript with node.js and web browser support

20 lines (18 loc) 448 B
var Utils = {}; Utils.extend = function(c, p) { var F = function() {}; F.prototype = p.prototype; c.prototype = new F(); c.prototype.constructor = c; c.uber = p.prototype; }; // Node.js check if (typeof module !== "undefined" && module.hasOwnProperty("exports")) { module.exports = Utils; } // amd check if (typeof define === "function" && define.amd) { define("utils", [], function() { return Utils; }); }