lib/index.js
function parse(schema, opts) {
  var attrs = files.load(schema);
  return attrs.protocol ?
    protocols.createProtocol(attrs, opts) :
    types.createType(attrs, opts);
}
function parse(schema, opts) {
  var attrs = files.load(schema);
  return attrs.protocol ?
    protocols.createProtocol(attrs, opts) :
    types.createType(attrs, opts);
}
function parse ( schema , opts ) { var attrs = files . load ( schema ) ; return attrs . protocol ? protocols . createProtocol ( attrs , opts ) : types . createType ( attrs , opts ) ; }
Parse a schema and return the corresponding type or protocol.
Parse a schema and return the corresponding type or protocol .