Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uploat

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uploat

Upload large video files to a remote server.

  • 0.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

What is uploat?

Upload large video files to a remote server.

Installation

npm i uploat

Usage

Import the library in your code:

const uploat = require('uploat');

Upload files

uploat({
    downloat: [
        {
            "type": "video",
            "path": ".downloat/My.Puppy.mp4",
            "size": 90145915,
            "name": "My.Puppy.mp4",
            "sha1": "e8999dc72d58d108990ae9983bd22943013f9788"
        }
    ],
    uploat: {
        url: 'https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart',
        authorization: 'Bearer [YOUR_AUTH_TOKEN]',
        params: {
            sess_id : '[SESS_ID]'
        }
    }
}).then(params => {
    console.log(params);
});
//{ downloat:
//   [ { type: 'video',
//       path: '.downloat/My.Puppy.mp4',
//       size: 90145915,
//       name: 'My.Puppy.mp4',
//       sha1: 'e8999dc72d58d108990ae9983bd22943013f9788',
//       uploat: {
//          status: 'success',
//          code: 'dQw4w9WgXcQ' } } ],
//  uploat: {
//      url: 'https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart',
//      authorization: 'Bearer [YOUR_AUTH_TOKEN]', 
//      params: {
//          sess_id : '[SESS_ID]'
//      }
//  }

API

downloat

Type: array

Required parameter path, the path to the file. Data can be obtained at the output of the downloat package.

uploat

Type: object

  • url the server URL to which the file will be sent;
  • params parameters for authorization and other data.
season

Type: number|array

Upload only certain season(s).

episode

Type: number|array

Upload only certain episode(s).

source

Type: string

The name for the log file.

Keywords

FAQs

Package last updated on 12 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc