lib/toxencryptsave.js
function(opts) {
  // If opts is a string, assume libpath
  if(_.isString(opts)) {
    opts = { path: opts }
  }

  if(!opts) opts = {};
  var libpath = opts['path'];

  this._library = this._createLibrary(libpath);
}
function(opts) {
  // If opts is a string, assume libpath
  if(_.isString(opts)) {
    opts = { path: opts }
  }

  if(!opts) opts = {};
  var libpath = opts['path'];

  this._library = this._createLibrary(libpath);
}
function ( opts ) { // If opts is a string, assume libpath if ( _ . isString ( opts ) ) { opts = { path : opts } } if ( ! opts ) opts = { } ; var libpath = opts [ 'path' ] ; this . _library = this . _createLibrary ( libpath ) ; }
Creates a ToxEncryptSave instance.
@class
@param {(Object|String)} [opts] Options
Creates a ToxEncryptSave instance .