Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshuawuyts/virtual-webtorrent
Webtorrent video element for virtual-dom
https://github.com/yoshuawuyts/virtual-webtorrent
Last synced: about 1 month ago
JSON representation
Webtorrent video element for virtual-dom
- Host: GitHub
- URL: https://github.com/yoshuawuyts/virtual-webtorrent
- Owner: yoshuawuyts
- License: mit
- Created: 2016-03-07T16:01:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-10T00:46:05.000Z (over 8 years ago)
- Last Synced: 2024-09-20T02:37:44.126Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-virtual-dom - virtual-webtorrent - (Modules / Components)
README
# virtual-webtorrent [![stability][0]][1]
[![npm version][2]][3] [![build status][4]][5] [![test coverage][6]][7]
[![downloads][8]][9] [![js-standard-style][10]][11]Webtorrent video element for virtual-dom.
## Usage
```js
const hyperx = require('hyperx')
const vdom = require('virtual-dom')
const hx = hyperx(vdom.h)
const createWebTorrent = require('virtual-webtorrent')const tree = hx`
${createWebTorrent({ torrent: torrent })}
`
document.body.appendChild(vdom.create(tree))
```## API
### webtorrent(opts)
Create a new webtorrent element. Options are:
- __torrent:__ required, torrent file## Installation
```sh
$ npm install virtual-webtorrent
```## License
[MIT](https://tldrlegal.com/license/mit-license)[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
[2]: https://img.shields.io/npm/v/virtual-webtorrent.svg?style=flat-square
[3]: https://npmjs.org/package/virtual-webtorrent
[4]: https://img.shields.io/travis/yoshuawuyts/virtual-webtorrent/master.svg?style=flat-square
[5]: https://travis-ci.org/yoshuawuyts/virtual-webtorrent
[6]: https://img.shields.io/codecov/c/github/yoshuawuyts/virtual-webtorrent/master.svg?style=flat-square
[7]: https://codecov.io/github/yoshuawuyts/virtual-webtorrent
[8]: http://img.shields.io/npm/dm/virtual-webtorrent.svg?style=flat-square
[9]: https://npmjs.org/package/virtual-webtorrent
[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[11]: https://github.com/feross/standard