virtual-webtorrent

1.0.3 • Public • Published

virtual-webtorrent stability

npm version build status test coverage downloads js-standard-style

Webtorrent video element for virtual-dom.

Usage

const hyperx = require('hyperx')
const vdom = require('virtual-dom')
const hx = hyperx(vdom.h)
const createWebTorrent = require('virtual-webtorrent')
 
const tree = hx`
  <section>
    ${createWebTorrent({ torrent: torrent })}
  </section>
`
document.body.appendChild(vdom.create(tree))

API

webtorrent(opts)

Create a new webtorrent element. Options are:

  • torrent: required, torrent file

Installation

$ npm install virtual-webtorrent

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    5
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i virtual-webtorrent

Weekly Downloads

8

Version

1.0.3

License

MIT

Last publish

Collaborators

  • yoshuawuyts