Socket
Book a DemoInstallSign in
Socket

virtual-webtorrent

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

virtual-webtorrent

Webtorrent video element for virtual-dom

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

virtual-dom

FAQs

Package last updated on 10 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts