Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/webtorrent/parse-torrent
/ functions
Functions
13 in github.com/webtorrent/parse-torrent
⨍
Functions
13
◇
Types & classes
0
↓ 31 callers
Function
parseTorrent
* Parse a torrent identifier (magnet uri, .torrent file, info hash) * @param {string|ArrayBufferView|Object} torrentId * @return {Object}
index.js:16
↓ 7 callers
Function
ensure
(bool, fieldName)
index.js:256
↓ 3 callers
Function
parseOrThrow
(torrentBuf)
index.js:101
↓ 1 callers
Function
decodeTorrentFile
* Parse a torrent. Throws an exception if the torrent is missing required fields. * @param {ArrayBufferView|Object} torrent * @return {Object}
index.js:117
↓ 1 callers
Function
error
(err)
bin/cmd.js:14
↓ 1 callers
Function
isBlob
* Check if `obj` is a W3C `Blob` or `File` object * @param {*} obj * @return {boolean}
index.js:244
↓ 1 callers
Function
makeBlobShim
(buf, name)
test/basic.js:139
↓ 1 callers
Function
onTorrentId
(torrentId)
bin/cmd.js:30
↓ 1 callers
Function
recursiveStringify
(obj)
bin/cmd.js:47
↓ 1 callers
Function
splitPieces
(buf)
index.js:248
↓ 1 callers
Function
usage
()
bin/cmd.js:6
Function
encodeTorrentFile
* Convert a parsed torrent object back into a .torrent file buffer. * @param {Object} parsed parsed torrent * @return {Uint8Array}
index.js:207
Function
parseTorrentRemote
(torrentId, opts, cb)
index.js:54