Skip to content

Commit

Permalink
expose class
Browse files Browse the repository at this point in the history
  • Loading branch information
David Mark Clements committed Jun 2, 2019
1 parent b084fdd commit 869c525
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Nanoresource = require('nanoresource')
const discovery = require('@hyperswarm/discovery')

module.exports = (opts) => new NetworkResource(opts)

class NetworkResource extends Nanoresource {
constructor (opts) {
if (!opts) opts = {}
Expand Down Expand Up @@ -194,3 +195,5 @@ function listen (server, port, cb) {
}

function noop () {}

module.exports.NetworkResource = NetworkResource

0 comments on commit 869c525

Please sign in to comment.