wwt-simple-upload-npm

A (really easy to use) uploader for WorldWideTorrents written in Javascript.

Usage no npm install needed!

<script type="module">
  import wwtSimpleUploadNpm from 'https://cdn.skypack.dev/wwt-simple-upload-npm';
</script>

README

wwt-simple-upload-npm

A (really easy to use) uploader for WorldWideTorrents written for NodeJS.

Usage

import upload from 'wwt-simple-upload-npm'
const API_KEY = ''

upload(
    API_KEY,
  {
    'name': '',                         // The uploaded torrent's title
    'torrent_file': '/home/a.torrent',  // The full path to the torrent file
    'category_id': 39                   // The category ID
  }
)

License

The MIT License (MIT). Please see License File for more information.