1.0.0 • Published 2 years ago

wt-gdrive-webseed v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Install:

npm install https://github.com/ThaUnknown/wt-gdrive-webseed

External:

<script src="https://apis.google.com/js/api.js"></script>

Usage:

import { gDHandleTorrent, init } from 'wt-gdrive-webseed'
import WebTorrent from 'webtorrent'

const client = new WebTorrent()

init({ apiKey, clientId, DiscoveryDocs, scope }) // creates a oauth popup for google login

client.on('torrent', gDHandleTorrent) // tries finding a file, does nothing if it can't find one