Skip to content

yoshuawuyts/virtual-webtorrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Webtorrent video element for virtual-dom

Resources

License

Stars

Watchers

Forks

Packages

No packages published