torrent-browse
v1.0.2
Published
Torrent search library for both nodejs and javascript
Downloads
46
Maintainers
Readme
Torrent browse
Torrents discovery library for both NodeJS & browser.
Read Documentation 📘
Check Demo 🎁
Installation
Install with NPM/yarn:
# NPM
npm install torrent-browse
# Yarn
yarn add torrent-browse
Import what you need:
import { search, defaultProviders } from 'torrent-browse'
search(
defaultProviders,
'harry potter'
).then(result => {
console.log(result)
})
Load directly in the browser
Include script from CDN and use torrentBrowse
global variable:
<script src="https://unpkg.com/torrent-browse"></script>
<script>
torrentBrowse.search(
torrentBrowse.defaultProviders,
'harry potter'
).then(result => {
console.log(result)
})
</script>
Browser VS Node
This library works in both NodeJS and the browser. However some default providers may not work in the browser due to browser limitations.
Due to CORS limitation browser can't fetch data from different domain. To get around that in the browser library uses free proxy servers. However they do not support custom headers and other things to get around website protections (like cloudflare).